get nesting level of controls

Mark Smith mark at maseurope.net
Wed Nov 29 07:20:10 EST 2006


And the second part is easy (I just had to check):

on mouseUp
   repeat with n = 1 to the number of controls in grp "someGroup"
     put the name of control n of grp "someGroup" & cr after cList
   end repeat
   put cList
end mouseUp

You can substitute 'card' for 'group'. I think (not tested  
thoroughly) that to get all the controls in a stack, you'll have to  
do it card by card.

Best,

Mark

On 29 Nov 2006, at 11:39, Viktoras Didziulis wrote:

> Is there any handler or function to tell what group or card any  
> selected
> control belongs to ? And vice versa - how do we get a list of all  
> controls
> contained within a group or card ?
>
> Best r.!
> Viktoras
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list