Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ Semyon Tokarev <[email protected]>
Shawn Sun <[email protected]>
Tim Dufrane <[email protected]>
Vincent Vanackere <[email protected]>
Lorenz Rosenthal <[email protected]>
2 changes: 2 additions & 0 deletions declarative/listbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ type ListBox struct {
AssignTo **walk.ListBox
DataMember string
Format string
CurrentIndex int
Model interface{}
MultiSelection bool
OnCurrentIndexChanged walk.EventHandler
Expand Down Expand Up @@ -80,6 +81,7 @@ func (lb ListBox) Create(builder *Builder) error {
return builder.InitWidget(lb, w, func() error {
w.SetFormat(lb.Format)
w.SetPrecision(lb.Precision)
w.SetCurrentIndex(lb.CurrentIndex)

if err := w.SetDataMember(lb.DataMember); err != nil {
return err
Expand Down