home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / vyzkuste / triky / triky.exe / autoit-v3-setup.exe / Examples / GUICtrlCreateEdit.au3 < prev    next >
Text File  |  2005-01-15  |  445b  |  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.