From 2e26a7101afdb9bce8a29a83c2c6d8cf15b7f4ec Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Sat, 29 Mar 2014 16:04:03 +0000 Subject: style: new button state btfEnabled --- src/gui/fpg_button.pas | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui') diff --git a/src/gui/fpg_button.pas b/src/gui/fpg_button.pas index b3bb60c6..0cbb1397 100644 --- a/src/gui/fpg_button.pas +++ b/src/gui/fpg_button.pas @@ -546,6 +546,9 @@ begin if FEmbedded then Include(lBtnFlags, btfIsEmbedded); + if not Enabled then + Include(lBtnFlags, btfDisabled); + // In the UI Designer we want the button more visible if not (csDesigning in ComponentState) then begin -- cgit v1.2.3-70-g09d2