LockLoc and grab
Bob Sneidar
bobsneidar at iotecdigital.com
Tue Jan 23 11:54:50 EST 2024
I’m suspecting now that he may be under the impression that the way to remove a control from a group is to drag it outside the group’s boundary. If so then this is not the case. The way I do it is I cut the control, click somewhere on the card, then paste the control again.
Alternatively you can download and use the exceptional utility revNavigator, which allows you to drag a control in the list it maintains onto or out of a group. It also makes reordering controls and groups very easy.
Bob S
> On Jan 23, 2024, at 8:42 AM, Craig Newman via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> 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
>
> _______________________________________________
> 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