#include <GUIConstantsEx.au3>
Dim $checkbox[6]
Global $Form1 = GUICreate("系统配置工具", 600, 600, 251, 112)
;GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
;GUISetBkColor (0x0066cc)
GUICtrlCreateGroup("部门选择", 20, 20, 160, 500)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlCreateGroup("软件选择", 220, 20, 360, 500)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
Global $tech = GUICtrlCreateRadio("技术部",30,50,121,33)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
Global $wx = GUICtrlCreateRadio("无线部",30,80,121,33)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
Global $cw = GUICtrlCreateRadio("财务部",30,110,121,33)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
Global $bi = GUICtrlCreateRadio("商业部",30,140,121,33)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
;GUICtrlCreateLabel("",225,45,350,450)
;GUICtrlCreateGroup("软件选择", 220, 20, 360, 500)
;GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUISetState()
While 1
Global $nMsg = GUIGetMsg()
Global $Info = GUIGetCursorInfo()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $tech
For $i = 0 To 5
GUICtrlDelete($checkbox[$i])
Next
$checkbox[0]=GUICtrlCreateCheckbox("Microsoft Office Visio", 230, 50, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
$checkbox[1]=GUICtrlCreateCheckbox("Mindmanger", 230, 80, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
$checkbox[2]=GUICtrlCreateCheckbox("Google Chrome", 230, 110, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
$checkbox[3]=GUICtrlCreateCheckbox("", 230, 140, 220, 20)
GUICtrlSetState(-1,$GUI_unchecked)
GUICtrlSetState(-1,$GUI_HIDE)
$checkbox[4]=GUICtrlCreateCheckbox("", 230, 170, 220, 20)
GUICtrlSetState(-1,$GUI_unchecked)
GUICtrlSetState(-1,$GUI_HIDE)
$checkbox[5]=GUICtrlCreateCheckbox("", 230, 200, 220, 20)
GUICtrlSetState(-1,$GUI_unchecked)
GUICtrlSetState(-1,$GUI_HIDE)
Case $wx
For $i = 0 To 5
GUICtrlDelete($checkbox[$i])
Next
$checkbox[0]=GUICtrlCreateCheckbox("Microsoft Office Project", 230, 50, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
$checkbox[1]=GUICtrlCreateCheckbox("Eclipse", 230, 80, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
$checkbox[2]=GUICtrlCreateCheckbox("SecureCRT", 230, 110, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
$checkbox[3]=GUICtrlCreateCheckbox("", 230, 140, 220, 20)
GUICtrlSetState(-1,$GUI_unchecked)
GUICtrlSetState(-1,$GUI_HIDE)
$checkbox[4]=GUICtrlCreateCheckbox("", 230, 170, 220, 20)
GUICtrlSetState(-1,$GUI_unchecked)
GUICtrlSetState(-1,$GUI_HIDE)
$checkbox[5]=GUICtrlCreateCheckbox("", 230, 200, 220, 20)
GUICtrlSetState(-1,$GUI_unchecked)
GUICtrlSetState(-1,$GUI_HIDE)
Case $cw
For $i = 0 To 5
GUICtrlDelete($checkbox[$i])
Next
$checkbox[0]=GUICtrlCreateCheckbox("Microsoft Office Project", 230, 50, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
$checkbox[1]=GUICtrlCreateCheckbox("Microsoft Office Visio", 230, 80, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
$checkbox[2]=GUICtrlCreateCheckbox("Photoshop", 230, 110, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
$checkbox[3]=GUICtrlCreateCheckbox("PDF Converter", 230, 140, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
GUICtrlSetState(-1,$GUI_show)
$checkbox[4]=GUICtrlCreateCheckbox("", 230, 170, 220, 20)
GUICtrlSetState(-1,$GUI_unchecked)
GUICtrlSetState(-1,$GUI_HIDE)
$checkbox[5]=GUICtrlCreateCheckbox("", 230, 200, 220, 20)
GUICtrlSetState(-1,$GUI_unchecked)
GUICtrlSetState(-1,$GUI_HIDE)
Case $bi
For $i = 0 To 5
GUICtrlDelete($checkbox[$i])
Next
$checkbox[0]=GUICtrlCreateCheckbox("Microsoft Office Visio", 230, 50, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
$checkbox[1]=GUICtrlCreateCheckbox("SecureCRT", 230, 80, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
$checkbox[2]=GUICtrlCreateCheckbox("Sybase PowerDesigner", 230, 110, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
$checkbox[3]=GUICtrlCreateCheckbox("UltraEdit", 230, 140, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
GUICtrlSetState(-1,$GUI_show)
$checkbox[4]=GUICtrlCreateCheckbox("SPSS Clementine", 230, 170, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
GUICtrlSetState(-1,$GUI_show)
$checkbox[5]=GUICtrlCreateCheckbox("Mindmanager", 230, 200, 220, 20)
GUICtrlSetFont(-1, 10, 800, 0, "微软雅黑")
GUICtrlSetState(-1,$GUI_unchecked)
GUICtrlSetState(-1,$GUI_show)
EndSwitch
WEnd