From b6d0521996572f0eebd6ff039e80a29fcaeb853b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Jan 2024 00:56:20 -0600 Subject: add SetTitle() Signed-off-by: Jeff Carr --- basicCombobox.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'basicCombobox.go') diff --git a/basicCombobox.go b/basicCombobox.go index 01b1f6d..4ca27bc 100644 --- a/basicCombobox.go +++ b/basicCombobox.go @@ -58,6 +58,12 @@ func (d *BasicCombobox) Disable() { d.d.Disable() } +func (d *BasicCombobox) SetTitle(name string) { + if d == nil {return} + if d.d == nil {return} + d.d.SetText(name) +} + func (d *BasicCombobox) Add(value any) { if ! d.Ready() {return} log.Log(INFO, "BasicCombobox.Add() =", value) -- cgit v1.2.3