Dr. Hawkins wrote:
I have a handler that needs to handle an event differently depending
upon which substack the button calling it is on.
I don't see a direct way of referencing the calling stack.
There is the topStack() function, which would *seem* to necessarily
return the relevant stack, but something makes me nervous about that.
And then there is choosing word 8 of the long name of the object, but
that seems downright reckless . . .
Is tehre a "clean" way to do this?
Parsing the executionContexts may help, but if the button must be
manually clicked it may be simpler to use the mouseStack function.
--
Richard Gaskin
Fourth World
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
Follow me on Twitter: http://twitter.com/FourthWorldSys
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode