diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-07-23 09:27:33 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-07-23 09:27:33 +0000 |
commit | 798eec0a0b98c58ddbd9ace0e9554a21a12f22e0 (patch) | |
tree | b5830295b44bdbcfcc3ceab23ec72d68f463618d /src/gui/gui_panel.pas | |
parent | ad260042ca17b2a381a6be1b6ac9dd549e4d5956 (diff) | |
download | fpGUI-798eec0a0b98c58ddbd9ace0e9554a21a12f22e0.tar.xz |
* Applied Vladimir's DrawText patch. Nice work.
Diffstat (limited to 'src/gui/gui_panel.pas')
-rw-r--r-- | src/gui/gui_panel.pas | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/gui_panel.pas b/src/gui/gui_panel.pas index f986ff58..3ea6c4a5 100644 --- a/src/gui/gui_panel.pas +++ b/src/gui/gui_panel.pas @@ -466,8 +466,8 @@ begin Canvas.SetFont(Font); lTxtFlags:= []; - if Enabled then - Include(lTxtFlags, txtEnabled); + if not Enabled then + Include(lTxtFlags, txtDisabled); if FWrapText then Include(lTxtFlags, txtWrap); @@ -595,7 +595,7 @@ begin lTxtFlags := TextFlagsDflt; if not Enabled then - Exclude(lTxtFlags, txtEnabled); + Include(lTxtFlags, txtDisabled); // Canvas.ClearClipRect; |