AutoITChump Posted September 19, 2005 Share Posted September 19, 2005 Howdy all, In a bit of a sticky wicket. I'm trying to create a window that pops up in which I can update the text to show progress of installations. I've created a GUI with an Edit control. It's a read-only control with vertical scroll bars. My problem is, the user is able to "select" text with the control. While this text is selected, and the control is updated via GUICtrlSetData, it overwrites the selected text. Here is the function I've created. It first checks for the existence of the GUI, then creates it if it does not exist. (This will be used multiple times throughout the running of the main app. Func StatusUpdate ($message) If $gui_status = "" Then $gui_status = GUICreate($title & " Install Status",392, $guiheight,(@DesktopWidth-392)/2, (@DesktopHeight-$guiheight)/2 , $WS_VISIBLE + $WS_CLIPSIBLINGS) $status = GUICtrlCreateEdit("Install status:" & @CRLF,-1,-1,390,220,$ES_AUTOVSCROLL+$WS_VSCROLL+$ES_READONLY+$ES_NOHIDESEL) GUISetState(@SW_SHOW) Else GUISetState(@SW_SHOW,$gui_status) EndIf If Not WinActive($title & " Install Status") Then WinActivate($title & " Install Status") EndIf GUICtrlSetData($status, @crlf & $message,"1") EndFunc Thanks in advance for any assistance!! Link to comment Share on other sites More sharing options...
GaryFrost Posted September 19, 2005 Share Posted September 19, 2005 Might want to look at this thread: http://www.autoitscript.com/forum/index.ph...ndpost&p=107452 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
AutoITChump Posted September 19, 2005 Author Share Posted September 19, 2005 Might want to look at this thread: http://www.autoitscript.com/forum/index.ph...ndpost&p=107452That's pretty much my problem. Thanks for pointing out the previous thread! 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