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 / GUICtrlCreatePic.au3 < prev    next >
Text File  |  2005-01-07  |  607b  |  27 lines

  1. #include <GUIConstants.au3>
  2. GUICreate("My GUI picture",350,300,-1,-1,$WS_SIZEBOX+$WS_SYSMENU)  ; will create a dialog box that when displayed is centered
  3.  
  4. GUISetBkColor (0xE0FFFF)
  5. $n=GUICtrlCreatePic(@Systemdir & "\oobe\images\mslogo.jpg",50,50, 200,50)
  6.  
  7. GUISetState ()
  8.  
  9. ; Run the GUI until the dialog is closed
  10. While 1
  11.     $msg = GUIGetMsg()
  12.     
  13.     If $msg = $GUI_EVENT_CLOSE Then ExitLoop
  14. Wend
  15.  
  16.  
  17. GUISetState ()
  18. ; resize the control
  19. $n=GUICtrlSetPos($n,50,50,200,100)
  20. ; Run the GUI until the dialog is closed
  21. While 1
  22.     $msg = GUIGetMsg()
  23.     
  24.     If $msg = $GUI_EVENT_CLOSE Then ExitLoop
  25. Wend
  26.  
  27.