Hiding controls Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Charon
Posts: 12
Joined: 20 Aug 2022, 07:34

Hiding controls

Post by Charon » 04 Jun 2023, 12:38

How do I hide a control such as a button or edit control? In v1 I would just do:

Code: Select all

Gui, Add, Edit,  Limit8 number vmySysPrin,   ;hide this
GuiControl, Hide, mySysPrin

In ver2 I thought I could do something like:

Code: Select all

MyGui.Add("Edit", "Limit18 Number vmySysPrin").OnEvent("Change", myScript)
 mySysPrin.Visible := false
 ;or maybe using  ControlHidev.mySysPrin

User avatar
boiler
Posts: 16768
Joined: 21 Dec 2014, 02:44

Re: Hiding controls

Post by boiler » 04 Jun 2023, 12:46

Code: Select all

mySysPrin := MyGui.Add("Edit", "Limit18 Number")
mySysPrin.OnEvent("Change", myScript)
mySysPrin.Visible := false

User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: Hiding controls  Topic is solved

Post by SKAN » 04 Jun 2023, 12:46

Code: Select all

MyGui["mySysPrin"].Visible := False

Post Reply

Return to “Ask for Help (v2)”