From b1d8c09916ae753b9df0954d9a995d16fd4b2232 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Tue, 21 Sep 2010 11:09:06 +0200 Subject: Button: Flat=True (toolbar) buttons are now painted as such in the uidesigner This makes them easily distinguishable between normal buttons. --- src/gui/fpg_button.pas | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/fpg_button.pas') 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 -- cgit v1.2.3-70-g09d2