<div class="gmail_quote">On Fri, Mar 30, 2012 at 12:25 AM, cobines <span dir="ltr"><<a href="mailto:cobines@gmail.com">cobines@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In the TreeView there are many calls to TreeView.Invalidate but<br>
TTreeNodes.SetUpdateState and TTreeStrings.SetUpdateState call<br>
TreeView.Refresh instead. Refresh calls TWidgetSet.UpdateWindow which<br>
on Win32 and GTK2 causes repaint of the control via synchronous<br>
WM_PAINT. QT4 seems to only post a paint request to the message queue.<br>
Should it not be Invalidate instead of Refresh? Why the need for<br>
immediate Repaint? Multiple calls to Invalidate stack, so only one<br>
Paint is done later.<br>
<br>
At least on Windows and GTK2 this causes the TreeView to be repainted<br>
twice instead of once:<br></blockquote></div>[...]<br><br>Could you please create a patch. I will test and apply it.<br><br>Juha<br><br>