AoRaToS Posted February 15, 2009 Share Posted February 15, 2009 How can I get the mouse coords for the relative to the control it's on? Like the control click coords the info tool gives, I want to return the coords of the mouse over a treeview when the mouse left button is clicked: If I use $Position = MouseGetPos() while Opt("MouseCoordMode",2) it doesn't work correctly unless the control is created at 0,0 of the GUI, I want the control coords the way the info tool gets them s!mpL3 LAN Messenger Current version 2.9.9.1 [04/07/2019] s!mpL3 LAN Messenger.zip s!mpL3 Link to comment Share on other sites More sharing options...
dantay9 Posted February 15, 2009 Share Posted February 15, 2009 If I am understanding your problem correctly, couldn't you just add how far left the control is in the gui and how far from the top it is? Link to comment Share on other sites More sharing options...
AoRaToS Posted February 15, 2009 Author Share Posted February 15, 2009 Good Idea...Maybe that's how the Info tool does it also s!mpL3 LAN Messenger Current version 2.9.9.1 [04/07/2019] s!mpL3 LAN Messenger.zip s!mpL3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now