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 / GUICtrlSetImage.au3 < prev    next >
Text File  |  2005-01-07  |  372b  |  18 lines

  1. #include <GUIConstants.au3>
  2.  
  3. GUICreate("My GUI")  ; will create a dialog box that when displayed is centered
  4.  
  5. GUICtrlCreateButton ("my picture button", 10,20,40,40, $BS_ICON)
  6. GUICtrlSetImage (-1, "shell32.dll",22)
  7.                 
  8. GUISetState ()
  9.  
  10. ; Run the GUI until the dialog is closed
  11. While 1
  12.     $msg = GUIGetMsg()
  13.     
  14.     If $msg = $GUI_EVENT_CLOSE Then ExitLoop
  15. Wend
  16.  
  17.  
  18.