Append text
#include <GuiEdit.au3>
_GUICtrlEdit_AppendText ( $hWnd, $sText )
$hWnd | Control ID/Handle to the control |
$sText | String to append |
_GUICtrlEdit_GetText, _GUICtrlEdit_InsertText, _GUICtrlEdit_SetText
#include <GUIConstantsEx.au3>
#include <GuiEdit.au3>
Example()
Func Example()
Local $idEdit
; Create GUI
GUICreate("Edit Append Text", 400, 300)
$idEdit = GUICtrlCreateEdit("This is a test" & @CRLF & "Another Line", 2, 2, 394, 268)
GUISetState(@SW_SHOW)
_GUICtrlEdit_AppendText($idEdit, @CRLF & "Append to the end?")
; Loop until the user exits.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>Example