Can you tell me how to add editbox using checkbox and when checkbox is unchecked, editbox disappears?
[Mod action: Moved topic from "Looking for Volunteers in other languages"]
how to add editbox using checkbox? Topic is solved
Re: how to add editbox using checkbox? Topic is solved
Welcome to this AutoHotkey forum!
Code: Select all
Gui, Font, s10
Gui, Add, Checkbox, w250 vchecked gCheck, &Edit
Gui, Add, Edit , wp vdetail Hidden
Gui, Show,, Edit
Return
Check:
Gui, Submit, NoHide
If checked {
GuiControl, Show , detail
GuiControl, Focus, detail
} Else GuiControl, Hide , detail
Return
Re: how to add editbox using checkbox?
And I have a question, do you know how to get some text added to this edit box immediately after clicking the checkbox?
Re: how to add editbox using checkbox?
Code: Select all
Gui, Font, s10
Gui, Add, Checkbox, w250 vchecked gCheck, &Edit
Gui, Add, Edit , wp vdetail Hidden, Text added immediately
Gui, Show,, Edit
Return
Check:
Gui, Submit, NoHide
If checked {
GuiControl, Show , detail
GuiControl, Focus, detail
} Else GuiControl, Hide , detail
Return
Re: how to add editbox using checkbox?
can also play with color , font, position, size x y w h
Code: Select all
e1=
(
This is an EDIT-box
Next Line
)
Gui,Color,Black,Green
Gui, Font, s12 cWhite,Lucida Console
Gui, Add, Checkbox, x20 y10 vchecked gCheck, &Edit
Gui, Add, Edit , x100 y10 w300 h200 vdetail Hidden,%e1%
Gui, Show,x100 y100 w450 h250 , Edit
Return
Guiclose:
Exitapp
Check:
Gui, Submit, NoHide
If checked {
GuiControl, Show , detail
GuiControl, Focus, detail
;Guicontrol,1:,detail,%e1% ;- or also
} Else GuiControl, Hide , detail
Return