How to refer to objects in a group

DunbarX at aol.com DunbarX at aol.com
Wed Nov 18 13:49:57 EST 2009


It is easy to work this. The hard part is knowing what control you need to 
get hold of.

This short script gets a list of the numbers and names of controls in group 
"yourgroup".

But without that list in hand, how do you find a particular one? I suppose 
if you had the list, you can make another gadget to access any member of the 
group.

on mouseUp
    repeat with y = 1 to the number of controls
       if the owner of control y   = "group" && quote & "yourGroup" & quote 
then put y &&   the name of control y & return after temp
    end repeat
    answer temp
    
    --hide control word 1 of line 2 of temp --what you originally asked for
end mouseUp

Craig Newman



More information about the use-livecode mailing list