Editing groups and mouse messages

2008-10-17 Thread Richard Gaskin
I need to build a UI similar to the Finder or Windows Explorer, in which there are icons that can be moved around, and selecting one brings it in front of the others. To drag you just click and drag of course, and the icon first come to the front then does the dragging action. These icons

Re: Editing groups and mouse messages

2008-10-17 Thread Mark Schonewille
Hi Richard, Why edit the group? Can't you just get all layer numbers of all groups, take the highest number and set the layer of the target group to to that number? Subsequently, get all layer numbers of of the controls in a group and set the layer number of the target control to the

Re: Editing groups and mouse messages

2008-10-17 Thread Richard Gaskin
Mark Schonewille wrote: Why edit the group? Can't you just get all layer numbers of all groups, take the highest number and set the layer of the target group to to that number? Subsequently, get all layer numbers of of the controls in a group and set the layer number of the target control

Re: Editing groups and mouse messages

2008-10-17 Thread Phil Davis
Hi Richard, I don't know why you're not getting a mouseUp at mouseUp time. As a workaround, I suppose you could use something like this: on mouseMove x,y if sIsDragging is true then cancel sMyMouseUp -- stop most recent mouseUp msg from firing set the topleft of me to (x-xOff),(y-yOff)

Re: Editing groups and mouse messages

2008-10-17 Thread Eric Chatonet
Bonsoir Richard, I have the same behavior in an app of mine, written two years ago and used every day... I have groups composed with an image and buttons that belong themselves to a main group. When the user clicks such a sub group, I bring it to top and allow to move it. I have no time

Re: Editing groups and mouse messages

2008-10-17 Thread Trevor DeVore
On Oct 17, 2008, at 3:17 PM, Richard Gaskin wrote: Chipp's thread went into that in detail, but in short all the icons are in a group and turning on the relayerGroupedControls (necessary to relayer stuff without a group without using editBackground) and then setting the layer causes the

Re: Editing groups and mouse messages

2008-10-17 Thread Eric Chatonet
Bonsoir Richard, I let apart the move part of the job to focus on layering: on MoveGroupToFront pGroup local tTarget,tOwner,tLayer,tPeers,tRelayerGroupedControls - put the abbr id of grp pGroup into tTarget put the long owner of tTarget into tOwner put the layer of tOwner + 1 into

Re: Editing groups and mouse messages

2008-10-17 Thread Richard Gaskin
Many thanks to all who offered advice on this. Eric Chatonet was kind enough to email me a nifty handler that solves the problem very well, without having to set the editBackground (which I admit made me squeamish when it seemed the only alternative). -- Richard Gaskin Fourth World Media

Re: Editing groups and mouse messages

2008-10-17 Thread Chipp Walters
On Fri, Oct 17, 2008 at 5:35 PM, Richard Gaskin [EMAIL PROTECTED]wrote: without having to set the editBackground (which I admit made me squeamish when it seemed the only alternative). Yep, tend to agree. I only use the editBackground trick while in the IDE and for a tool. Sounds like you got

Re: Editing groups and mouse messages

2008-10-17 Thread Chipp Walters
BTW, I think I would try locking and unlocking messages before and after your edit group stuff and see if that doesn't clear up the mouseUp message.. On Fri, Oct 17, 2008 at 1:55 PM, Richard Gaskin [EMAIL PROTECTED]wrote: but I never get a mouseUp or mouseRelease to empty my dragging flag. :\