From 9dae345d88deacba1074e31b70c96cad5285ed00 Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Fri, 5 Oct 2012 16:11:31 +0200 Subject: [PATCH 1/3] fix error message for compound controls CCompoundControl.AddContainerControl() passed an empty "Name" parameter to CGUI.AddControl(), which caused an error message. --- CCompoundControl.ahk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CCompoundControl.ahk b/CCompoundControl.ahk index a62c276..ed958d1 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) { From cc13599e60d9e4fbe2765996231070a911bde0be Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Fri, 5 Oct 2012 16:12:53 +0200 Subject: [PATCH 2/3] support Hide() and Show() on compound controls --- CCompoundControl.ahk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CCompoundControl.ahk b/CCompoundControl.ahk index ed958d1..1308a69 100644 --- a/CCompoundControl.ahk +++ b/CCompoundControl.ahk @@ -62,4 +62,16 @@ Class CCompoundControl } this.Boundaries := {x : x, y : y, width : w, height : h} } + + Hide() + { + for name, ctrl in this.Container + ctrl.Hide() + } + + Show() + { + for name, ctrl in this.Container + ctrl.Show() + } } \ No newline at end of file From 53acbea8b1039baada3eb5147f970016dfc53a6b Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Tue, 23 Oct 2012 18:03:43 +0200 Subject: [PATCH 3/3] add "Visible" property to CCompoundControl --- CCompoundControl.ahk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CCompoundControl.ahk b/CCompoundControl.ahk index 1308a69..2734c4b 100644 --- a/CCompoundControl.ahk +++ b/CCompoundControl.ahk @@ -65,12 +65,14 @@ Class CCompoundControl Hide() { + this.Visible := false for name, ctrl in this.Container ctrl.Hide() } Show() { + this.Visible := true for name, ctrl in this.Container ctrl.Show() }