diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-05-07 13:09:02 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-05-07 13:09:02 +0200 |
commit | 9b14cfffc4e77bf4e0141b581e49bf8ed57790c6 (patch) | |
tree | 4ac4b8bf6435f28102dc24a029664df589b066ac | |
parent | b078d5b33d38c309b898f49a68bc76e922b11db0 (diff) | |
download | fpGUI-9b14cfffc4e77bf4e0141b581e49bf8ed57790c6.tar.xz |
Edit: removed redundant background painting code for BaseNumericEdit.
* now read-only and disabled states display correctly.
-rw-r--r-- | src/gui/fpg_edit.pas | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gui/fpg_edit.pas b/src/gui/fpg_edit.pas index 78d6d8cb..5dd25fb0 100644 --- a/src/gui/fpg_edit.pas +++ b/src/gui/fpg_edit.pas @@ -1760,12 +1760,6 @@ begin r := GetClientRect; Canvas.SetClipRect(r); - if Enabled then - Canvas.SetColor(FBackgroundColor) - else - Canvas.SetColor(clWindowBackground); - Canvas.FillRectangle(r); - Canvas.SetFont(Font); Canvas.SetTextColor(TextColor); x := r.Width - Font.TextWidth(Text) - FSideMargin; |