下面试试看
记得Execute可以这样用
$box1= GUICtrlCreateCheckbox("OFFICE2007", 40, 140, 100, 20)
$box2=GUICtrlCreateCheckbox("RTX",220,140,50,20)
$box3=GUICtrlCreateCheckbox("FOXMAIL",330,140,70,20)
$box4=GUICtrlCreateCheckbox("viso2007",40,180,85,20)
$box5=GUICtrlCreateCheckbox("PS",220,180,35,20)
$box6=GUICtrlCreateCheckbox("火狐",330,180,50,20)
$box7=GUICtrlCreateCheckbox("遨游",40,220,50,20)
$box8=GUICtrlCreateCheckbox("电信传真",220,220,85,20)
$gui1=GUICtrlCreateLabel("",60,280,80,30)
GUICtrlSetData($gui,_NowDate())
$gui2=GUICtrlCreateLabel("",200,280,80,30)
$gui3=GUICtrlCreateLabel("",320,280,50,30)
GUICtrlSetData($gui3,$week[@WDAY-1])
For $i=1 To 8
Execute("GUICtrlSetFont($box" & $i & ",12)")
Next
For $i=1 To 3
Execute("GUICtrlSetFont($gui" & $i & ",12)")
Next
或
Dim $Col[11]=["box1","box2","box3","box4","box5","box6","box7","box8","gui","gui2","gui3"]
$box1= GUICtrlCreateCheckbox("OFFICE2007", 40, 140, 100, 20)
$box2=GUICtrlCreateCheckbox("RTX",220,140,50,20)
$box3=GUICtrlCreateCheckbox("FOXMAIL",330,140,70,20)
$box4=GUICtrlCreateCheckbox("viso2007",40,180,85,20)
$box5=GUICtrlCreateCheckbox("PS",220,180,35,20)
$box6=GUICtrlCreateCheckbox("火狐",330,180,50,20)
$box7=GUICtrlCreateCheckbox("遨游",40,220,50,20)
$box8=GUICtrlCreateCheckbox("电信传真",220,220,85,20)
$gui=GUICtrlCreateLabel("",60,280,80,30)
GUICtrlSetData($gui,_NowDate())
$gui2=GUICtrlCreateLabel("",200,280,80,30)
$gui3=GUICtrlCreateLabel("",320,280,50,30)
GUICtrlSetData($gui3,$week[@WDAY-1])
For $i=0 To 10
Execute("GUICtrlSetFont($" & $Col[$i] & ",12)")
Next
|