iahngy Posted April 18, 2014 Posted April 18, 2014 Would you help me out pls ...it wont set selection. #include <GuiEdit.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 437, 192, 124) $Button1 = GUICtrlCreateButton("Button1", 96, 344, 75, 25) $Edit1 = GUICtrlCreateEdit("", 64, 16, 385, 249,BitOR($ES_WANTRETURN, $WS_VSCROLL)) GUICtrlSetData(-1, "Edit1") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $Button1 _GUICtrlEdit_SetSel($Edit1, 2,3) EndSwitch WEnd
FireFox Posted April 18, 2014 Posted April 18, 2014 Hi, I can't test it right now but I guess you need to set the focus to the control just before the setsel function. GUICtrlSetState($Edit1, $GUI_FOCUS) Br, FireFox.
iahngy Posted April 18, 2014 Author Posted April 18, 2014 I figured out I need rich text edit so it highlighted instead of set selection. Because I wnt many lines highlighted. Do you know any rich text UDF
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