Hi everyone, I'm working on a multi-monitor setup (which I suspect is part of the difficulty), and I'm trying to accomplish a very simply thing, open a stack and set its bottom left corner to the location of where the user clicked the mouse. due to the differences in how loc is calculated for stacks, I can't seem to figure out how to do this. Maybe its just one of those days....
Any help would be appriciated
set bottom left corner of stack to clicklocation
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
set bottom left corner of stack to clicklocation
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: set bottom left corner of stack to clicklocation
hi makeshyft - you could use:
Inside the script of a card or stack. However I've just tested it and found it rather hard to control the position of the stack - if you wanted to modify it so that the effect only takes place if the user clicks whilst ctrl is down the code would change to:
Code: Select all
on mousedown
set the bottomleft of the current stack to the screenmouseloc
end mousedown
Code: Select all
on mousedown
if controlkey() = "down" then set the bottomleft of the current stack to the screenmouseloc
end mousedown
"...this is not the code you are looking for..."
[Solved] Re: set bottom left corner of stack to clicklocatio
Thank you so much Dave .....I was close .... I worked with mouseloc and clickloc. ty.
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com