diff --git a/CCompoundControl.ahk b/CCompoundControl.ahk index a62c276..2734c4b 100644 --- a/CCompoundControl.ahk +++ b/CCompoundControl.ahk @@ -6,7 +6,7 @@ Class CCompoundControl Boundaries := "" AddContainerControl(GUI, Type, Name, Options, Text) { - this.Container.Insert(Name, GUI.AddControl(Type, "", Options, Text)) + this.Container.Insert(Name, GUI.AddControl(Type, Name, Options, Text)) } __Get(Key) { @@ -62,4 +62,18 @@ Class CCompoundControl } this.Boundaries := {x : x, y : y, width : w, height : h} } + + Hide() + { + this.Visible := false + for name, ctrl in this.Container + ctrl.Hide() + } + + Show() + { + this.Visible := true + for name, ctrl in this.Container + ctrl.Show() + } } \ No newline at end of file