diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2011-01-13 00:02:07 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2011-01-13 00:02:07 +0200 |
commit | 9c841e73826129758c16d6d7e04b8cdca72b8557 (patch) | |
tree | f10bf8f0d9205656d9dca8f3a827a0648b0b837d /src | |
parent | 57c356041b19c337bf48fcbc5e93301ce983b5d4 (diff) | |
download | fpGUI-9c841e73826129758c16d6d7e04b8cdca72b8557.tar.xz |
Creating various Edit components via helper functions now call UpdateWindowState
This means that the internal state of the result component instances
are set correctly - without extra developer intervention.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/fpg_edit.pas | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/fpg_edit.pas b/src/gui/fpg_edit.pas index 6962a80a..689b98ae 100644 --- a/src/gui/fpg_edit.pas +++ b/src/gui/fpg_edit.pas @@ -397,6 +397,7 @@ begin Result.Height := TfpgEdit(Result).FFont.Height + 4 + (Result.FHeightMargin * 2) else Result.Height:= h; + Result.UpdateWindowPosition; end; function CreateEditInteger(AOwner: TComponent; x, y, w, h: TfpgCoord; AShowThousand: boolean= True): TfpgEditInteger; @@ -410,6 +411,7 @@ begin Result.Height := TfpgEditInteger(Result).FFont.Height + 4 + (Result.FHeightMargin * 2) else Result.Height:= h; + Result.UpdateWindowPosition; end; function CreateEditFloat(AOwner: TComponent; x, y, w, h: TfpgCoord; AShowThousand: boolean= True; @@ -426,6 +428,7 @@ begin Result.Height := TfpgEditFloat(Result).FFont.Height + 4 + (Result.FHeightMargin * 2) else Result.Height:= h; + Result.UpdateWindowPosition; end; function CreateEditCurrency(AOwner: TComponent; x, y, w, h: TfpgCoord; AShowThousand: boolean= True; @@ -441,6 +444,7 @@ begin Result.Height := TfpgEditCurrency(Result).FFont.Height + 4 + (Result.FHeightMargin * 2) else Result.Height:= h; + Result.UpdateWindowPosition; end; |