Page 1 of 1

A list of highlighted buttons

Posted: Tue Feb 20, 2007 4:15 pm
by quailcreek
Hello again,
How would I gather a list of the highlighted buttons in a group of buttons?

Thanks
Tom

Posted: Tue Feb 20, 2007 4:29 pm
by malte
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