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

  1. #include <GUIConstants.au3>
  2. GUICreate("My GUI radio")  ; will create a dialog box that when displayed is centered
  3.  
  4. $radio1 = GUICtrlCreateRadio ("Radio 1", 10, 10, 120, 20)
  5. GUICtrlSetState ($radio1,$GUI_CHECKED)
  6. $radio2 = GUICtrlCreateRadio ("Radio 2", 10, 40, 120, 20)
  7.  
  8. GUISetState ()       ; will display an  dialog box with 1 checkbox
  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.