From 1ac95c7125b6f2f196138139b85c82284e5adbd7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 30 Jan 2024 01:37:21 -0600 Subject: [PATCH] add Show() and Hide() Signed-off-by: Jeff Carr --- basicCombobox.go | 10 ++++++++++ basicEntry.go | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/basicCombobox.go b/basicCombobox.go index 3b318d9..8377f3f 100644 --- a/basicCombobox.go +++ b/basicCombobox.go @@ -48,6 +48,16 @@ func (d *BasicCombobox) Ready() bool { return d.ready } +func (n *BasicCombobox) Hide() { + n.l.Hide() + n.d.Hide() +} + +func (n *BasicCombobox) Show() { + n.l.Show() + n.d.Show() +} + func (d *BasicCombobox) Enable() { if d == nil { return diff --git a/basicEntry.go b/basicEntry.go index 040a9cb..da39962 100644 --- a/basicEntry.go +++ b/basicEntry.go @@ -40,6 +40,16 @@ func (n *BasicEntry) Disable() { n.v.Disable() } +func (n *BasicEntry) Show() { + n.l.Show() + n.v.Show() +} + +func (n *BasicEntry) Hide() { + n.l.Hide() + n.v.Hide() +} + func (n *BasicEntry) String() string { log.Log(GADGETS, "BasicEntry.String() =", n.v.String()) return n.v.String()