checking cancel button
Jim Ault
JimAultWins at yahoo.com
Mon May 15 03:03:05 EDT 2006
Try in the button script
on mouseDown
end mouseDown
Jim Ault
Las Vegas
On 5/14/06 10:24 PM, "Stephen Gorton" <sgorton at usa.net> wrote:
> hi
> i can't seem to figure out how to switch context to a button - to see if its
> been clicked and to -allow- the mouse to click it..
>
> i have a handler that reads through a file and puts the status into a progress
> bar.
> I have stuck a button (cancel) on the card
>
> question is how do i get the repeat statement in the handler to switch context
> to the btn?, and check if the button has been depressed.
> i have a mouse up statement in the btn but no matter what i do
> the card ignores the button completely until its finished the repeat
>
> what i want to do is something like.....
>
> repeat for each line L in testfile
> add 1 to num
> if cancel button depressed exit repeat
> set thumbpos of sb progbar to num
> end repeat
>
> how do i check the state of the mouse button to see if its been depressed??
>
> thanks
> stephen
>
>
>
> _____________________________________________________________________
>
> If this e-mail requires a reply please send to apen-support at sun.com
> in case I am away so my colleagues can respond accordingly.
> _____________________________________________________________________
> Stephen Gorton
> Technical Support Engineer
> Sun Services
> Sun Microsystems (NZ) Ltd
> Level 7, Sun Microsystems House
> 70 The Terrace, Wellington
> NEW ZEALAND
> Tel DDI: +64 4 462 0756
> Fax : +64 4 462 0776
> e-mail: Stephen.Gorton at Sun.COM
> Submit and view your cases online.
> Details at http://www.sun.co.nz/service/osc
> _____________________________________________________________________
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list