Let me try to clarify the problem I stated.
I am not trying to remove the button, I am trying to use the “grab” command to
let a user move the button around the window by dragging it.
If I use a script to “set the loc” of a button to somewhere outside that
group’s rectangle
- the group will resize if its lockLoc property is false (thus keeping
the relocated button visible);
- but the button will disappear if the group’s lockLoc property is true.
But when I use the “grab” command to relocate the button outside the group’s
current rectangle the group does not resize even if its lockLoc property is
false.
> 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.
>
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode