Skip to content

Commit

Permalink
ComboBox: Add Text property
Browse files Browse the repository at this point in the history
  • Loading branch information
lxn committed Jun 5, 2013
1 parent e7d7f13 commit 32c832f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions combobox.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ func newComboBoxWithStyle(parent Container, style uint32) (*ComboBox, error) {
},
cb.CurrentIndexChanged()))

cb.MustRegisterProperty("Text", NewProperty(
func() interface{} {
return cb.Text()
},
func(v interface{}) error {
return cb.SetText(v.(string))
},
cb.CurrentIndexChanged()))

cb.MustRegisterProperty("Value", NewProperty(
func() interface{} {
if cb.Editable() {
Expand Down

0 comments on commit 32c832f

Please sign in to comment.