Is there an easy way to get the x,y coordinates of a stack
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Is there an easy way to get the x,y coordinates of a stack
For instance, when I put my mouse over a certain location on my stack, I'd like to be able to get the x,y coordinates. Is there an easy way to do this so when I'm designing my layout or moving objects around I can have this info?
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Is there an easy way to get the x,y coordinates of a sta
See the screenMouseLoc function and the mouseMove message in the Dictionary.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Is there an easy way to get the x,y coordinates of a sta
Thanks bud. Way easier than I was trying. You led me down the right road though. Thank you.FourthWorld wrote:See the screenMouseLoc function and the mouseMove message in the Dictionary.
Code: Select all
-- get the mouse location x,y
on mouseMove
put the mouseLoc into fld "fld1"
end mouseMove
Re: Is there an easy way to get the x,y coordinates of a sta
Hi shawnblc,
So you don't have to include a fld every time try just
"put the mouseLoc"
See what happens.
Simon
So you don't have to include a fld every time try just
"put the mouseLoc"
See what happens.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Is there an easy way to get the x,y coordinates of a sta
Simon wrote:Hi shawnblc,
So you don't have to include a fld every time try just
"put the mouseLoc"
See what happens.
Simon
Excellent Simon. I stepped away from my LC learning for awhile due to work, but I'm getting back into it.
