On Fri, Mar 30, 2012 at 12:25 AM, cobines <[email protected]> wrote: > In the TreeView there are many calls to TreeView.Invalidate but > TTreeNodes.SetUpdateState and TTreeStrings.SetUpdateState call > TreeView.Refresh instead. Refresh calls TWidgetSet.UpdateWindow which > on Win32 and GTK2 causes repaint of the control via synchronous > WM_PAINT. QT4 seems to only post a paint request to the message queue. > Should it not be Invalidate instead of Refresh? Why the need for > immediate Repaint? Multiple calls to Invalidate stack, so only one > Paint is done later. > > At least on Windows and GTK2 this causes the TreeView to be repainted > twice instead of once: > [...]
Could you please create a patch. I will test and apply it. Juha
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
