Hi all,
I have many button in my stock. How to which button is clicked? I want to know the button ID and the label.
If the button is in a group, can I get which button is clicked with know the button ID and label.
Thanks in advance.
Regards
Terry Ho
How to know which button is clcik
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 328
- Joined: Mon Dec 05, 2011 5:34 pm
- Contact:
Re: How to know which button is clcik
Hi,
Try:
"the target" is the object that has been clicked on - though it is not limited to only buttons - so you might want to filter out other clicks in your mouseUp/click handler.
Hope that helps.
Cheers,
Dave
Try:
Code: Select all
put the ID of the target into vButtonID
put the short name of the target into vButtonName
put the label of the target into vButtonLabel
Hope that helps.
Cheers,
Dave
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.
Visit http://electronic-apps.info for released App information.
Re: How to know which button is clcik
You are so lovely. It work.
Thanks a lot
Terry Ho
Thanks a lot
Terry Ho