Trong Posted March 10, 2015 Posted March 10, 2015 (edited) #include <GUIConstants.au3> Global $EditBufSize = 281474976710656 $MainGUI = GUICreate("Test", 620, 300 ) $GUI_Log=GUICtrlCreateEdit ("", 20,20,600,200, BitOR($ES_NOHIDESEL,$ES_AUTOVSCROLL,$ES_READONLY, $WS_HSCROLL,$WS_VSCROLL, $ES_MULTILINE)) GUISetState () GUICtrlSetData ($GUI_Log, "Hello" & @CRLF,1) GUICtrlSetData ($GUI_Log, "World" & @CRLF,1) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Exit Why "Hello" not Delete ? Edited March 10, 2015 by Trong Regards,
Solution mpower Posted March 10, 2015 Solution Posted March 10, 2015 (edited) You answer is here: https://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm default [optional] Combo, List: The default value.Edit, Input: If non-empty (""), the string is inserted at the current insertion point (caret). #include <GUIConstants.au3> Global $EditBufSize = 281474976710656 $MainGUI = GUICreate("Test", 620, 300 ) $GUI_Log=GUICtrlCreateEdit ("", 20,20,600,200, BitOR($ES_NOHIDESEL,$ES_AUTOVSCROLL,$ES_READONLY, $WS_HSCROLL,$WS_VSCROLL, $ES_MULTILINE)) GUISetState () GUICtrlSetData ($GUI_Log, "Hello" & @CRLF) GUICtrlSetData ($GUI_Log, "World" & @CRLF) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Exit Edited March 10, 2015 by mpower Trong 1
Trong Posted March 10, 2015 Author Posted March 10, 2015 Thanks! Solution: _GUICtrlEdit_SetText() Regards,
mpower Posted March 10, 2015 Posted March 10, 2015 (edited) Thanks! Solution: _GUICtrlEdit_SetText() This does the same thing: GUICtrlSetData ($GUI_Log, "World" & @CRLF) Edited March 10, 2015 by mpower Trong 1
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