summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-09-21 09:21:59 +0100
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-09-21 09:21:59 +0100
commit51a57257d391edb52a1c755a063287bcd4a9028f (patch)
treea28073b8715fd986319219c66c427d0ce5648fb9 /src
parentf6bdaf28c36db18b1c7110a9720f9264a8b0672d (diff)
downloadfpGUI-51a57257d391edb52a1c755a063287bcd4a9028f.tar.xz
trackbar: Fixed the focus rectangle flicker problem while dragging.
Diffstat (limited to 'src')
-rw-r--r--src/gui/fpg_trackbar.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/fpg_trackbar.pas b/src/gui/fpg_trackbar.pas
index 89b9b0da..fe0b6a0e 100644
--- a/src/gui/fpg_trackbar.pas
+++ b/src/gui/fpg_trackbar.pas
@@ -526,7 +526,8 @@ var
r: TfpgRect;
begin
DrawSlider(True);
- if Focused then
+ { dont't draw focus rect while dragging - it flickers }
+ if Focused and (not FSliderDragging) then
begin
r.SetRect(0, 0, Width, Height);
Canvas.DrawFocusRect(r);