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 / GUICtrlSetResizing.au3 < prev    next >
Text File  |  2005-01-07  |  1KB  |  32 lines

  1. #include <GUIConstants.au3>
  2.  
  3. Opt("GUICoordMode", 2)
  4. GUICreate ("My InputBox",190,114,-1,-1,$WS_SIZEBOX+$WS_SYSMENU)    ; start the definition
  5. GUISetIcon ("Eiffel Tower.ico")
  6.  
  7. GUISetFont (8,-1,"Arial")
  8.  
  9. GUICtrlCreateLabel ("Prompt", 8,7)        ; add prompt info
  10. GUICtrlSetResizing (-1,$GUI_DOCKLEFT+$GUI_DOCKTOP)
  11.  
  12. $nEdit = GUICtrlCreateInput ("Default", -1,3,175,20,$ES_PASSWORD)    ; add the input area
  13. GUICtrlSetState ($nEdit,$GUI_FOCUS)
  14. GUICtrlSetResizing ($nEdit,$GUI_DOCKBOTTOM+$GUI_DOCKHEIGHT)
  15.  
  16. $nOk = GUICtrlCreateButton ("OK",-1,3,75,24)    ; add the button that will close the GUI
  17. GUICtrlSetResizing ($nOk,$GUI_DOCKBOTTOM+$GUI_DOCKSIZE+$GUI_DOCKVCENTER)
  18.  
  19. $nCancel = GUICtrlCreateButton ("Annuler", 25,-1)    ; add the button that will close the GUI
  20. GUICtrlSetResizing ($nCancel,$GUI_DOCKBOTTOM+$GUI_DOCKSIZE+$GUI_DOCKVCENTER)
  21.  
  22. GUISetState ()                    ; to display the GUI
  23.  
  24. ; Run the GUI until the dialog is closed
  25. While 1
  26.     $msg = GUIGetMsg()
  27.     
  28.     If $msg = $GUI_EVENT_CLOSE Then ExitLoop
  29. Wend
  30.  
  31.  
  32.