A list of highlighted buttons

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

A list of highlighted buttons

Post by quailcreek » Tue Feb 20, 2007 4:15 pm

Hello again,
How would I gather a list of the highlighted buttons in a group of buttons?

Thanks
Tom

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Tue Feb 20, 2007 4:29 pm

Hi tom,

put the hilitedButton of group "myGroup" works for radio button clusters (a group which has the radioBehaviour set to true)

If you allow for multiple hilites in a group, you will need to go through the group in a repeat loop

Code: Select all

 
repeat with i=1 to the number of buttons of group "myGroup"
  if the hilite of button i of grp "myGroup" then put the long ID of btn i of grp "myGroup"&cr after theList
end repeat
delete char -1 of theList
put theList
hope that helps,

Malte

Post Reply