Question about position of cloned group

René Micout rene.micout at numericable.com
Sat Apr 16 11:49:27 EDT 2011


Hello >

put item 1 of the loc of grp A into vX -- A = the name of the last group
put item 2 of the loc of grp A into vY
set the loc of grp Naam to vX+20,vY+20 -- 20 or other value...

Bon souvenir de Paris
René

set the loc of grp Naam to vxParentX+250,vxParentY+25 -- décalé par rapport au nœud parent

Le 16 avr. 2011 à 16:14, William de Smet a écrit :

> Hi there,
> 
> I use a little script to clone a grp and rename the name and label of
> the btn in the group.
> So far so good but each cloned grp is put on top of the other one. Not so nice!
> How do I get the cloned grp to be show next to the previous cloned grp?
> Set the left of grp Naam to (the left of the last grp +20) doesn't work
> 
> on mouseUp
>   lock screen
>   clone grp "dummy"
>   global Naam
>   add 1 to Naam
>   set the name of the last grp to Naam
>   set the name of btn "cijfer" of the last grp to Naam
>   set the label of the last btn to Naam
>  set the left of grp Naam to (the left of the last grp +20)
>   unlock screen
> end mouseUp
> 
> Greetings,
> 
> William
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list