#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Local $varleft = 0
Local $hGUI = GUICreate("Example", 500, 500)
Local $idedit = GUICtrlCreateEdit("First line" & @CRLF, 0, 0, 100, 100)
Local $idbutton = GUICtrlCreateButton("GO", 120, 170, 85, 25)
GUISetState(@SW_SHOW, $hGUI)
GUISetState(@SW_SHOW)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
Case $idbutton
$varleft+=10
GUICtrlSetPos($idedit,$varleft)
if ($varleft = 500) then $varleft = 0
EndSwitch
WEnd
|