Out of a thread which grew very long I post this as an answer to Tal.
(http://forums.runrev.com/phpBB2/viewtop ... f=9&t=4917)
It is a stack that lets you select objects (groups with 1 button in it as it is) and you can drag them around. Shift clicking selects/deselects.
Script in the card script. This version implements the dragging part and respects the boundaries of the card (no accidental moving of objects off the card)
Should be easily adaptable to different scenarios.
regards
Bernd
select objects and drag them around
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
select objects and drag them around
- Attachments
-
- selectGroupsIIII.rev.zip
- (5.96 KiB) Downloaded 272 times
Re: select objects and drag them around
Hi bn,
I succeed with solution, it is very helpful, thank you.
See you soon for the next problem lol
I succeed with solution, it is very helpful, thank you.
See you soon for the next problem lol
Re: select objects and drag them around
Hi Bernd,
Very clever. Thanks
• I suggest an alert if btns have scripts or suppress the selection by mouseup with shiftKey
• I'm a little bit confuse with the make group command. At first I thinked it group the current selection ( i haven't really readed the "create/delete groups" comment
)
• Be careful, if the user change the loc of group 1 the command can create some group without the rect of stack
Jean-Marc
Very clever. Thanks
• I suggest an alert if btns have scripts or suppress the selection by mouseup with shiftKey
• I'm a little bit confuse with the make group command. At first I thinked it group the current selection ( i haven't really readed the "create/delete groups" comment

• Be careful, if the user change the loc of group 1 the command can create some group without the rect of stack
Jean-Marc
https://alternatic.ch
Re: select objects and drag them around
Merci Jean-Marc,
into the buttons (just delete all but the last group with the "DeleteGroups" button and put this script into the button, add your code for normal mouseUp/Down
regards
Bernd
you could putjmburnod wrote:• I suggest an alert if btns have scripts or suppress the selection by mouseup with shiftKey
Code: Select all
on mouseUp
if the hilite of btn "bMakeSelection" then pass mouseUp
-- rest of code here
end mouseUp
on mouseDown
if the hilite of btn "bMakeSelection" then pass mouseDown
-- rest of code here
end mouseDown
I left the "MakeGroups" / "DeleteGroups" buttons in the stack as a convenient way to change the one Button/Group that is cloned, they have zero errorchecking since they are only for development.jmburnod wrote:• I'm a little bit confuse with the make group command. At first I thinked it group the current selection
Same here, just for development, no errorchecking.jmburnod wrote:• Be careful, if the user change the loc of group 1 the command can create some group without the rect of stack
regards
Bernd