UI: dump out editbox text
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
478750e2dd
commit
e09b563089
|
@ -1,3 +1,5 @@
|
|||
all:
|
||||
go get -v -t -u .
|
||||
go install
|
||||
|
||||
prep:
|
||||
go get -v -t -u .
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue