LockLoc and grab
Craig Newman
craig at starfirelighting.com
Tue Jan 23 11:42:06 EST 2024
Aha.
I did not see that you meant a single button in its own group. But it would not matter if I did the same with a control within a larger group of controls. And it does not matter if the lockLoc of the group is set or not.
So is your question “Why does the control disappear when it is dragged outside the group rect?” In other words, "why does it not just keep going in full view?”
I am not sure, but maybe being outside its group means it is nowhere at all?
Craig
> On Jan 22, 2024, at 8:02 PM, David Epstein via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> A group with lockLoc set to false does not resize itself when an object in it is moved by a “grab” command. Is this a bug? Is there a simple workaround?
>
> Recipe using 10.0.0 dp6 on an intel Mac:
>
> Create a button with this script:
> on mouseDown; grab me; end mouseDown.
> Group the button. Confirm that the group’s lockLoc property is false. Then with the browse tool, drag the button past the edge of the group. The button disappears.
>
> David Epstein
> _______________________________________________
> 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