jdelaney, This script will do that: #include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
$hGUI = GUICreate("Test", 500, 500)
$cRadio_1 = GUICtrlCreateRadio(" Radio control 1", 10, 10, 200, 20)
$cRadio_2 = GUICtrlCreateRadio(" Radio control 2", 10, 40, 200, 20)
GUISetState()
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $cRadio_1, $cRadio_2
$sMsg = ""
If GUICtrlRead($cRadio_1) = $GUI_CHECKED Then
$sMsg &= "State: Radio 1 checked"
Else
$sMsg &= "Text: " & GUICtrlRead($cRadio_1, 1)
EndIf
$sMsg &= @CRLF
If GUICtrlRead($cRadio_2) = $GUI_CHECKED Then
$sMsg &= "State: Radio 2 checked"
Else
$sMsg &= "Text: " & GUICtrlRead($cRadio_2, 1)
EndIf
MsgBox($MB_SYSTEMMODAL, "Result", $sMsg)
EndSwitch
WEndIf you actually want the style, then you need to call the API as explained in the Setting Styles tutorial in the Wiki: #include <Constants.au3> ; Do not forget these include files!
#include <WinAPI.au3>
$iStyle = _WinAPI_GetWindowLong(GUICtrlGetHandle($cControlID), $GWL_STYLE)
$iExStyle = _WinAPI_GetWindowLong(GUICtrlGetHandle($cControlID), $GWL_EXSTYLE)
M23