Text anhängen/anfügen
#include <GuiEdit.au3>
_GUICtrlEdit_AppendText ( $hWnd, $sText )
$hWnd | Control-ID / Handle des Controls |
$sText | String zum Anhängen/Anfügen |
- - - - - - - - Erklärung der Controls - - - - - - - -
_GUICtrlEdit_GetText, _GUICtrlEdit_InsertText, _GUICtrlEdit_SetText
#include <GUIConstantsEx.au3>
#include <GuiEdit.au3>
Example()
Func Example()
Local $idEdit
; Erstellt eine GUI
GUICreate("Edit: Einen Text anhängen", 400, 300)
$idEdit = GUICtrlCreateEdit("Dies ist ein Test" & @CRLF & "Eine andere Zeile", 2, 2, 394, 268)
GUISetState(@SW_SHOW)
_GUICtrlEdit_AppendText($idEdit, @CRLF & "Zeile an das Ende anhängen?")
; Die Schleife wiederholt sich, bis der Benutzer die Beenden-Aktion der GUI auslöst.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>Example