realbasic-nug
[Top] [All Lists]

Re: Do Timers fire during a drag?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Do Timers fire during a drag?
From: Phil M <phil at mobleybros dot com>
Date: Mon, 27 Feb 2006 20:10:38 -0800
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <D9263AF6-6C74-4F08-8079-5361E0524A2F at comcast dot net>
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>


<Prev in Thread] Current Thread [Next in Thread>