I can reproduce this in both LC 10 and 9.6.9 but I can't explain it. It's unclear if this is a feature or a bug.

On 1/23/24 11:32 AM, David Epstein via use-livecode wrote:
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.


--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to