Detect Name of Button on Mouse Click

2013-06-03 Thread Keith Spieldenner
When I dynamically create objects, I typically set the behavior of the templateButton to point to a button on another card. That button contains the script for my new buttons. So, on another card, create a button that contains something like this... on mouseup switch the label of the target

Re: Detect Name of Button on Mouse Click

2013-06-02 Thread Dr. Hawkins
On Wed, May 29, 2013 at 8:46 AM, Mike Bonner wrote: > look at "the target" in the dictionary. > I also use buttons with the script on mouseUp dispatch the short name of me end mouseUp or on mouseUp doSomething the short name of me end mouseUp where a doSomething handler is on the car

Re: Detect Name of Button on Mouse Click

2013-05-29 Thread Richmond
On 05/29/2013 07:55 PM, Richmond wrote: Well, I don't know what is so difficult about that: on openCard declare a global string variable (e.g. BNAME) and then have this as 2 lines of code in each button script: put the name of me into BNAME pass mouseUp and then this in your card script: on

Detect Name of Button on Mouse Click

2013-05-29 Thread Richmond
Well, I don't know what is so difficult about that: on openCard declare a global string variable (e.g. BNAME) and then have this as 2 lines of code in each button script: put the name of me into BNAME pass mouseUp and then this in your card script: on mouseUp put BNAME end mouseUp Of cour

Re: Detect Name of Button on Mouse Click

2013-05-29 Thread Mike Bonner
look at "the target" in the dictionary. On Wed, May 29, 2013 at 9:44 AM, Graham Pearson wrote: > Looking for a way to detect which button was clicked by the user and > retrieve the name field of this so based on the button different actions > can be performed. > > Each button was placed on the

Detect Name of Button on Mouse Click

2013-05-29 Thread Graham Pearson
Looking for a way to detect which button was clicked by the user and retrieve the name field of this so based on the button different actions can be performed. Each button was placed on the card using the create invisible button command and after placing at a specific location, setting the label t