setting a substack to open at the mouseLoc

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
TonyL
Posts: 24
Joined: Mon Aug 07, 2006 1:15 am

setting a substack to open at the mouseLoc

Post by TonyL » Sun May 18, 2008 5:03 am

I am new to Revolution. I am trying to open a substack at the mouse location
with this code:

on mouseUp
set the left of stack "untitled 2" to item 1 of the mouseLoc
set the top of stack "untitled 2" to item 2 of the mouseLoc
go stack "untitled 2"
end mouseUp

The problem is, it doesn't open at the mouse location. However if I use this code on an object such as a button, it works fine.

Any ideas what I am doing wrong?

Thanks

TonyL
Posts: 24
Joined: Mon Aug 07, 2006 1:15 am

Post by TonyL » Sun May 18, 2008 5:17 am

Never mind: Use the ScreenMouseLoc!

Post Reply