关于Checkbox

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: 关于Checkbox

Re: 关于Checkbox

Post by SkyLife » 19 May 2017, 02:13

谢谢

Re: 关于Checkbox

Post by Alguimist » 19 May 2017, 00:45

Code: Select all

Gui, Show, w100 h100
Gui, add, checkbox, vStart gStart x20 y40 , Start
Gui, add, checkbox, +Disabled vA1 x20 y60 , A1 ;一开始就使不能是用的状态
Return

Start:
{
    Gui Submit, NoHide
    GuiControl, % Start ? "Enable" : "Disable", A1
}

关于Checkbox

Post by SkyLife » 18 May 2017, 21:16

Code: Select all

Gui, Show, w100 h100
Gui, add, checkbox, gStart x20 y40 , Start
Gui, add, checkbox, Disabled vA1 x20 y60 , A1 ;一开始就使不能是用的状态

Start:
{
	GuiControl, -Disabled , A1, ;选取Start后,让A1能使用
}
如何让Start取消选取时,A1变成不能使用

Top