summaryrefslogtreecommitdiff
path: root/src/gui/fpg_button.pas
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-09-21 11:09:06 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-09-21 11:09:06 +0200
commitb1d8c09916ae753b9df0954d9a995d16fd4b2232 (patch)
tree0d8039ada9fa0c4f0b7877fdbed6c493671af908 /src/gui/fpg_button.pas
parentb6b144fc77ec90ff4503a616c6d12263d0405fda (diff)
downloadfpGUI-b1d8c09916ae753b9df0954d9a995d16fd4b2232.tar.xz
Button: Flat=True (toolbar) buttons are now painted as such in the uidesigner
This makes them easily distinguishable between normal buttons.
Diffstat (limited to 'src/gui/fpg_button.pas')
-rw-r--r--src/gui/fpg_button.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/fpg_button.pas b/src/gui/fpg_button.pas
index 19b31049..032fcf47 100644
--- a/src/gui/fpg_button.pas
+++ b/src/gui/fpg_button.pas
@@ -532,6 +532,12 @@ begin
Include(lBtnFlags, btfHover)
else if FFlat then
Include(lBtnFlags, btfFlat);
+ end
+ else
+ begin
+ { while in the designer we want hover effect all the time }
+ if FFlat then
+ Include(lBtnFlags, btfHover);
end;
if not FFlat and FDefault then