本帖最后由 heroxianf 于 2017-9-22 21:15 编辑
下图所示:我想做个选择题,GUICtrlCreateRadio控件可以分组互不干扰,第一题我选A,第二题我选B。
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\tester\Desktop\Form1.kxf
$Form1 = GUICreate("Form1", 350, 330, 295, 192)
$Label1 = GUICtrlCreateLabel("一斤棉花和一斤铁,哪个重一点?", 48, 68, 200, 17)
$Label2 = GUICtrlCreateLabel("什么东西最值钱?", 48, 156, 200, 17)
$Radio1 = GUICtrlCreateRadio("A:棉花", 52, 108, 113, 17)
$Radio2 = GUICtrlCreateRadio("B:铁", 196, 108, 113, 17)
$Radio3 = GUICtrlCreateRadio("A:钱", 48, 200, 113, 17)
$Radio4 = GUICtrlCreateRadio("B:黄金", 196, 204, 113, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|