magician13134 Posted January 14, 2007 Share Posted January 14, 2007 How would I find out where the cursor in an edit control is (rows and columns)? Thanks Visit Magic Soft Inc. for some of my software Link to comment Share on other sites More sharing options...
phantom Posted January 14, 2007 Share Posted January 14, 2007 (edited) like this?#include <GUIConstants.au3> GUICreate ("test",100,100) $edit = GUICtrlCreateEdit ("",10,10,80,80) GUISetState () While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect $line = ControlCommand ("test","","Edit1","GetCurrentLine") $col = ControlCommand ("test","","Edit1","GetCurrentCol") ToolTip ("Line: " & $line & " Column: " & $col,0,0) WEndControlCommand ("test","","Edit1","GetCurrentLine")ControlCommand ("test","","Edit1","GetCurrentCol") Edited January 14, 2007 by phantom 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