Positioning object in a loclocked group
Paul Dupuis
paul at researchware.com
Thu Apr 15 11:28:37 EDT 2021
I find positioning objects by script inside a location locked groups to
be very non-intuitive as well.
I wish there was a mode by which all object in a group - in the special
mode - could be set and referenced by coordinates relative to the group.
Something like
set the relative loc of btn X in group Y to 120,120 -- places the center
of the button 120px right and down from the left, top of the group
(where ever that is)
On 4/15/2021 11:16 AM, Klaus major-k via use-livecode wrote:
> Hi all,
>
> I am sure there is a technical reason for this! 8-)
>
> I have a group set to 600*600 pixel and loclocked.
> Inside of the group there are two invisible objects,
> a button and a graphic.
>
> Now if I:
> ...
> create btn "b1" in grp "THE group"
> ## and
> set the loc of btn "b1" of grp "THE group" to whateverX,wahteverY
> ...
> where whateverX and Y are definitively inside of that group!
>
> Then the button stays however in the topleft corner of the group.
> Even moving the button some pixels to right or down does not work.
> Why, oh, why? :-)
>
> Thanks for any insight!
>
>
> Best
>
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> klaus at major-k.de
>
>
> _______________________________________________
> 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