Closed StarHack closed 3 years ago
Adds support for a ComboBox component
combobox := gocoa.NewComboBox(25, 125, 150, 25) combobox.AddItem("hello") combobox.AddItem("world") combobox.SetSelectedIndex(0) combobox.SetEditable(false) combobox.OnSelectionDidChange(func() { fmt.Println(combobox.SelectedText()) fmt.Println(combobox.SelectedIndex()) }) wnd.AddComboBox(combobox)
Looks great!!
Love it!
Adds support for a ComboBox component