diff --git a/example-ui-radiobutton/Makefile b/example-ui-radiobutton/Makefile index f1f692a..2ed1d98 100644 --- a/example-ui-radiobutton/Makefile +++ b/example-ui-radiobutton/Makefile @@ -1,3 +1,5 @@ all: - go get -v -t -u . go install + +prep: + go get -v -t -u . diff --git a/example-ui-radiobutton/main.go b/example-ui-radiobutton/main.go index 8a84fbc..65cb3fa 100644 --- a/example-ui-radiobutton/main.go +++ b/example-ui-radiobutton/main.go @@ -1,5 +1,6 @@ package main +import "log" import "github.com/andlabs/ui" import _ "github.com/andlabs/ui/winmanifest" @@ -57,6 +58,12 @@ func makeNumbersPage() ui.Control { ecbox.Append("Editable Item 3") vbox.Append(ecbox, false) + ecbox.OnChanged(func(*ui.EditableCombobox) { + log.Println("test") + test := ecbox.Text() + log.Println("test=", test) + }) + rb := ui.NewRadioButtons() rb.Append("Radio Button 1") rb.Append("Radio Button 2")