|
Hi...
got a small problem with scrolling and view updating. I have overridden
ListView>>onVScroll:, send super onVScroll: first and and then trigger
my own event for updating of the enclosing view. This view computes the
positions of the table rows to paint accordingly.
My problem is now that the painting is always one scroll event late.
This is apparently because when I trigger my event in my onVScroll: the
window processing of the actual scroll event is not yet completed. As a
workaround I now save the event in an instance var and override
ListView>>dispatchMessage:wParam:lParam:. Here I send the super message
first which completes all the required windows processing, then look if
there is a saved event and trigger my own one from here.
Everything works now, but quite often I experience "freezing" scrollbars
now.
Is there a better way to delay processing until after an event
completed? Forking a process is too slow, and postToInputQueue is not
working as there is no idle until after the user relased the scrollbar.
Any ideas?
Ciao
...Jochen
|