diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-01-13 12:52:02 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-01-13 12:52:02 +0200 |
commit | 0764f8fa4732c086562699e39211468ff7337ab7 (patch) | |
tree | d224222d1dc95988f5018d56073b6f77fd1536dd | |
parent | 917633582381edc43c9865d0ae231a13a481767d (diff) | |
download | fpGUI-0764f8fa4732c086562699e39211468ff7337ab7.tar.xz |
button: CreateButton() helper method never called UpdateWindowPosition
-rw-r--r-- | src/gui/fpg_button.pas | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/fpg_button.pas b/src/gui/fpg_button.pas index 9edb0463..a381207c 100644 --- a/src/gui/fpg_button.pas +++ b/src/gui/fpg_button.pas @@ -196,6 +196,7 @@ begin Result.SetPosition(x, y, w, Result.Height); // font was used to calculate height. Result.OnClick := AOnClickEvent; Result.ImageName := AImage; + Result.UpdateWindowPosition; end; { TfpgBaseButton } |