add SetTitle()

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-11 00:56:20 -06:00
parent 1a31a687d6
commit b6d0521996
1 changed files with 6 additions and 0 deletions

View File

@ -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)