home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 January / PCWELT_1_2006.ISO / pcwsoft / autoit-v3-setup.exe / Examples / GUICtrlCreateEdit.au3 < prev    next >
Encoding:
Text File  |  2005-01-15  |  445 b   |  18 lines

  1. #include <GUIConstants.au3>
  2.  
  3. GUICreate("My GUI edit")  ; will create a dialog box that when displayed is centered
  4.  
  5. $myedit=GUICtrlCreateEdit ("First line"& @CRLF, 176,32,121,97,$ES_AUTOVSCROLL+$WS_VSCROLL)
  6.  
  7. GUISetState ()
  8.  
  9. ; will be append dont' forget 3rd parameter
  10. GUICtrlSetData ($myedit, "Second line",1)
  11.  
  12. ; Run the GUI until the dialog is closed
  13. While 1
  14.     $msg = GUIGetMsg()
  15.     
  16.     If $msg = $GUI_EVENT_CLOSE Then ExitLoop
  17. Wend
  18.