rectangle in group moves by itself when grabbed

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
billworld
Posts: 188
Joined: Sat Oct 25, 2008 12:32 am

rectangle in group moves by itself when grabbed

Post by billworld » Fri Nov 14, 2008 5:05 pm

If you put a rectangle graphic in a group that has the following code:

Code: Select all

on mouseDown
   grab group "MyGroup"
end mouseDown
If you click on the graphic and drag, only the graphic moves, not the entire group. However, if you click and drag on any non-graphic object in the group (e.g. an image, button, etc) the ENTIRE grouped objects move.

Why is this? Is this a bug?

More info and a sample file to download are available at:

http://www.billdoerrfeld.com/RunRev/Pro ... abbed.html

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Nov 14, 2008 6:26 pm

Do you have more info, Bill? So far, it works fine for me.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

billworld
Posts: 188
Joined: Sat Oct 25, 2008 12:32 am

Post by billworld » Fri Nov 14, 2008 7:02 pm

You know what, not an issue. My apologies. I just discovered that I accidentally had a group-within-a-group which the graphic was tied to which had the Grab Me in addition to the outer group...

Need to re-group! :)
Mark wrote:Do you have more info, Bill? So far, it works fine for me.

Mark

Post Reply