Page 1 of 1
Is there an easy way to get the x,y coordinates of a stack
Posted: Wed Feb 26, 2014 2:54 am
by shawnblc
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?
Re: Is there an easy way to get the x,y coordinates of a sta
Posted: Wed Feb 26, 2014 3:01 am
by FourthWorld
See the screenMouseLoc function and the mouseMove message in the Dictionary.
Re: Is there an easy way to get the x,y coordinates of a sta
Posted: Wed Feb 26, 2014 3:54 am
by shawnblc
FourthWorld wrote:See the screenMouseLoc function and the mouseMove message in the Dictionary.
Thanks bud. Way easier than I was trying. You led me down the right road though. Thank you.
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
Posted: Wed Feb 26, 2014 4:04 am
by Simon
Hi shawnblc,
So you don't have to include a fld every time try just
"put the mouseLoc"
See what happens.
Simon
Re: Is there an easy way to get the x,y coordinates of a sta
Posted: Wed Feb 26, 2014 4:21 am
by shawnblc
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.
