#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Documents and Settings\Игорь\Рабочий стол\Form2.kxf
$Form2 = GUICreate("Форма работы", 357, 187, 293, 213)
GUISetIcon("D:\009.ico")
$GroupBox1 = GUICtrlCreateGroup("", 8, 8, 257, 161)
$Radio1 = GUICtrlCreateRadio("Radio1", 16, 24, 17, 17)
$Radio2 = GUICtrlCreateRadio("Radio2", 16, 64, 17, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
$Radio3 = GUICtrlCreateRadio("Radio3", 16, 112, 17, 17)
$Label1 = GUICtrlCreateLabel("Экстримал", 40, 24, 85, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("Занятой", 40, 64, 66, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("Хранитель", 42, 111, 83, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label4 = GUICtrlCreateLabel("Больльшой зароботок, но и большой риск", 32, 40, 218, 17)
$Label5 = GUICtrlCreateLabel("Стандарт - тихая работа, небольшой риск", 32, 80, 215, 17)
$Label6 = GUICtrlCreateLabel("Минимальный риск, и маленький но", 32, 128, 190, 17)
$Label7 = GUICtrlCreateLabel("и доход", 32, 96, 42, 17)
$Label8 = GUICtrlCreateLabel("стабильный доход", 32, 144, 97, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("&OK", 272, 16, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("&Cancel", 272, 48, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Select
Case $nMsg = $GUI_EVENT_CLOSE
ExitLoop
Case $nMsg = $Button1 And BitAND(GUICtrlRead($Radio1), $GUI_CHECKED) = $GUI_CHECKED
MsgBox(64, 'Info:', 'You clicked the Radio 1 and it is Checked.')
Case $nMsg = $Button1 And BitAND(GUICtrlRead($Radio2), $GUI_CHECKED) = $GUI_CHECKED
MsgBox(64, 'Info:', 'You clicked on Radio 2 and it is Checked.')
Case $nMsg = $Button1 And BitAND(GUICtrlRead($Radio3), $GUI_CHECKED) = $GUI_CHECKED
MsgBox(64, 'Info:', 'You clicked on Radio 3 and it is Checked.')
EndSelect
WEnd