summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-05-07 13:09:02 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-05-07 13:09:02 +0200
commit9b14cfffc4e77bf4e0141b581e49bf8ed57790c6 (patch)
tree4ac4b8bf6435f28102dc24a029664df589b066ac /src/gui
parentb078d5b33d38c309b898f49a68bc76e922b11db0 (diff)
downloadfpGUI-9b14cfffc4e77bf4e0141b581e49bf8ed57790c6.tar.xz
Edit: removed redundant background painting code for BaseNumericEdit.
* now read-only and disabled states display correctly.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/fpg_edit.pas6
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;