本帖最后由 cfs43210 于 2012-9-23 23:41 编辑 现在问题是第一次读取是可以的,但是$Checkbox8 和 $Checkbox23就头和尾复选按钮控制的$Combo1、$Combo1、$Input14、$Input29 失灵。第二次读取时其它控件也会被禁用了,这是这么回事!谢谢!
For $i = 1 To 15
$aa = IniRead($Tini, "abc", "x1" & $i, "default")
If $aa = 1 Then
GUICtrlSetState($Checkbox8, $GUI_CHECKED)
GUICtrlSetState($Combo1, $GUI_ENABLE)
GUICtrlSetState($Input14, $GUI_ENABLE)
$Checkbox8 = $Checkbox8 + 1
$Combo1 = $Combo1 + 1
$Input14 = $Input14 + 1
ElseIf $aa = 0 Then
GUICtrlSetState($Checkbox8, $GUI_UNCHECKED)
GUICtrlSetState($Combo1, $GUI_DISABLE)
GUICtrlSetState($Input14, $GUI_DISABLE)
$Checkbox8 = $Checkbox8 + 1
$Combo1 = $Combo1 + 1
$Input14 = $Input14 + 1
EndIf
Next
|