How to handle 'movestack' ??

Dar Scott dsc at
Sat Jun 15 13:24:01 EDT 2002

On Saturday, June 15, 2002, at 07:05 AM, Chipp Walters wrote:

> I want to fire a custom handler at the end of a movestack, but 
> movestack on
> the PC fires continually while you movestack until you mouseUp. 
> The mouseUp
> can't be trapped because the cursor is outside the stack (on the 
> titlebar).
> Any ideas on how this can be accomplished??

This is probably not the way an expert would do it, but here is an idea.

Run the handler when movestack stops firing.

Send a delayed message every time movestack fires.  Either get rid 
of old ones or have some sort of check in the message handler.  
When the message handler runs and movestack has not fired in some 
period, it calls your custom handler.

Another thought...  Does your custom handler really care?

Dar Scott

More information about the Use-livecode mailing list