Le 16 sept. 2012 à 02:57, Mark Smith <[email protected]> a écrit :
> Ok, thanks Mike and Pete. I understand what is going on now. So I guess the > best (and only?) way to keep track of this is: > > on mouseup > stuff the name of the button in a global variable > go stack test > > then in "test" retrieve the button name from the global variable. > Doesn't sound too complicated but I was trying to see if there was a cleaner > way than using a global. > > Cheers, > > -- Mark or you can use a custom property button: on mouseUp set the triggerButton of stack "mySubstack" to the short name of me go to stack "mySubstack" end mouseUp and in mySubstack's script on preOpenStack put the triggerButton of me into tButton switch tButton case… etc, etc Jacques ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: [email protected] ******************************************* _______________________________________________ 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
