Code: Select all
Gui, Add, CheckBox, gcustom vAlpha7 x15 y30, Custom
Gui, Add, Edit, vedt2 x15 y50 w250 h20 +Disabled
Gui, Show, x700 autosize, Test Gui
return
custom:
if (Alpha7 = 0) {
GuiControl, Enable, edt2
Alpha7 := 1
}
else {
GuiControl, Disable, edt2
Alpha7 := 0
}
return