summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-03-10 09:13:42 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-03-10 09:13:42 +0200
commit9c245e3cb7abe5ef47d936a5a6725215b3136f88 (patch)
tree0fc3bf359e7cc26b01b8c9704947a6e950061d62
parent27564b913691dcf521d278e55ab23d9c3e60836c (diff)
downloadfpGUI-9c245e3cb7abe5ef47d936a5a6725215b3136f88.tar.xz
listview: fixed double buffering bug.
Under Windows the issue caused the listview to stop updating. It is not recommended to paint outside the HandlePaint event handler. Painting is not guaranteed then.
-rw-r--r--src/gui/fpg_listview.pas8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/fpg_listview.pas b/src/gui/fpg_listview.pas
index 1b2f738a..ae3e1ac3 100644
--- a/src/gui/fpg_listview.pas
+++ b/src/gui/fpg_listview.pas
@@ -801,13 +801,7 @@ begin
FOnColumnClick(Self, Column, Button);
Column.FDown := True;
-
- if FUpdateCount = 0 then
- begin
- Canvas.BeginDraw(False);
- PaintHeaders;
- Canvas.EndDraw;//(2,2, width-4, Height-4);
- end;
+ Repaint;
end;
procedure TfpgListView.HandleHeaderMouseMove(x, y: Integer; btnstate: word;