summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/corelib/fpg_main.pas2
-rw-r--r--src/gui/fpg_button.pas3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/fpg_main.pas b/src/corelib/fpg_main.pas
index 5b22f666..0fada05a 100644
--- a/src/corelib/fpg_main.pas
+++ b/src/corelib/fpg_main.pas
@@ -47,7 +47,7 @@ type
TAnchors = set of TAnchor;
TfpgButtonFlags = set of (btfIsEmbedded, btfIsDefault, btfIsPressed,
- btfIsSelected, btfHasFocus, btfHasParentColor, btfFlat, btfHover);
+ btfIsSelected, btfHasFocus, btfHasParentColor, btfFlat, btfHover, btfDisabled);
TfpgMenuItemFlags = set of (mifSelected, mifHasFocus, mifSeparator,
mifEnabled, mifChecked, mifSubMenu);
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