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 / imagebutton.au3 < prev    next >
Text File  |  2005-01-21  |  816b  |  25 lines

  1. #include <GUIConstants.au3>
  2.  
  3. GUICreate("test",240,180)
  4. $button1 = GUICtrlCreateButton ("1", 0,0,40,40,$BS_ICON)
  5. GUICtrlSetImage (-1, "shell32.dll",5)
  6. $button2 = GUICtrlCreateButton ("2", 40,00,40,40,$BS_ICON)
  7. GUICtrlSetImage (-1, "shell32.dll",7)
  8. $button3 = GUICtrlCreateButton ("3", 80,00,40,40,$BS_ICON)
  9. GUICtrlSetImage (-1, "shell32.dll",22)
  10. $button4 = GUICtrlCreateButton ("4", 120,0,40,40,$BS_ICON)
  11. GUICtrlSetImage (-1, "shell32.dll",23)
  12. $button5 = GUICtrlCreateButton ("5", 160,0,40,40,$BS_ICON)
  13. GUICtrlSetImage (-1, "shell32.dll",32)
  14. $buttonclose = GUICtrlCreateButton ("close", 200,0,40,40,$BS_ICON)
  15. GUICtrlSetImage (-1, "shell32.dll",28)
  16. GUISetState()
  17.  
  18. ; Run the GUI until the dialog is closed
  19. While 1
  20.     $msg = GUIGetMsg() 
  21.     If $msg = $GUI_EVENT_CLOSE Then ExitLoop
  22. Wend
  23.  
  24. GUIDelete()
  25.