On Feb 27, 2006, at 7:55 PM, Karen wrote:
I'm trying to implement column reordering during a drag... I wanted
to be able to to track the mouse via a timer to scroll the listbox
horizontally if need be... DragMove events on the window don't work
because the user should NOT have to keep moving the list box one
out of it to continue scrolling//
So do timers not fire during a drag or do I have a bug? If they
don't scroll is there a way to work around this?
Timers do not do *anything* unless there is nothing else going on (at
least in the main thread). What makes Timers so efficient is also
their greatest weakness.
Instead, I have used Threads in place of timers for situations like
you describe. At the time just did a brute force Do...Loop until it
reached the target time (in Microseconds), but now I would try to
revise that the code take advantage of the newer Thread.Sleep()
method. At some point, I would like to create a Thread-based Timer
class which will run in cases that a Timer will not.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|