home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 January / PCWELT_1_2006.ISO / pcwsoft / autoit-v3-setup.exe / Examples / GUICtrlCreateCheckbox.au3 < prev    next >
Encoding:
Text File  |  2004-09-28  |  393 b   |  19 lines

  1. #include <GUIConstants.au3>
  2.  
  3. GUICreate("My GUI Checkbox")  ; will create a dialog box that when displayed is centered
  4.  
  5. $checkCN = GUICtrlCreateCheckbox ("CHECKBOX 1", 10, 10, 120, 20)
  6.  
  7. GUISetState ()       ; will display an  dialog box with 1 checkbox
  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.  
  18.  
  19.