summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2010-04-14 00:01:01 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2010-04-14 00:01:01 +0200
commitf7c106785a249687713a298d6219c397ba50f4ce (patch)
treeab54886cdcebed5c0753c2e73da341568c48e657 /src/gui
parentb7cb124d16c7ffb63f2952b6dbe53ac94e76c3c3 (diff)
downloadfpGUI-f7c106785a249687713a298d6219c397ba50f4ce.tar.xz
Edit: When the component is disabled, the ExtraHint should not be shown.
The old behaviour was indistinguishable between Disabled state with actual Text. So we had to modify the ExtraHint painting.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/fpg_edit.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/fpg_edit.pas b/src/gui/fpg_edit.pas
index ddd97eab..5c46a08f 100644
--- a/src/gui/fpg_edit.pas
+++ b/src/gui/fpg_edit.pas
@@ -1394,7 +1394,7 @@ begin
inherited HandlePaint;
r := Canvas.GetClipRect; // contains adjusted size based on borders
- if (FVisibleText = '') and not Focused then
+ if Enabled and (FVisibleText = '') and (not Focused) then
begin
Canvas.SetTextColor(clShadow1);
fpgStyle.DrawString(Canvas, -FDrawOffset + GetMarginAdjustment, r.Top + FHeightMargin, FExtraHint, Enabled);