Creates a Radio button control for the GUI.
GUICtrlCreateRadio ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] )
To obtain the value of the control see GUICtrlRead().
To set or change information in the control see GUICtrlUpdate...() functions.
To combine styles with the default style use BitOR($GUI_SS_DEFAULT_RADIO, newstyle, ... ).
To use the values specified above you must #include <ButtonConstants.au3> in your script.
Default resizing is $GUI_DOCKHEIGHT.
GUICoordMode (Option), GUICtrlUpdate..., GUIGetMsg
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
Example()
Func Example()
GUICreate ("My GUI radio"); will create a dialog box that when displayed is centered
Local $idRadio1= GUICtrlCreateRadio ("Radio 1",10,10,120,20)
Local $idRadio2= GUICtrlCreateRadio ("Radio 2",10,40,120,20)
GUICtrlSetState ($idRadio2,$GUI_CHECKED)
GUISetState (@SW_SHOW ); will display an dialog box with 1 checkbox
Local $idMsg
; Loop until the user exits.
While 1
$idMsg= GUIGetMsg ()
Select
Case $idMsg= $GUI_EVENT_CLOSE
ExitLoop
Case $idMsg= $idRadio1And BitAND (GUICtrlRead ($idRadio1),$GUI_CHECKED)= $GUI_CHECKED
MsgBox ($MB_SYSTEMMODAL,'Info:','You clicked the Radio 1 and it is Checked.')
Case $idMsg= $idRadio2And BitAND (GUICtrlRead ($idRadio2),$GUI_CHECKED)= $GUI_CHECKED
MsgBox ($MB_SYSTEMMODAL,'Info:','You clicked on Radio 2 and it is Checked.')
EndSelect
WEnd
EndFunc ;==>Example