Skip to content

Commit

Permalink
Publish event as selected index changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shivas committed Nov 4, 2020
1 parent d863433 commit b70e57b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions combobox.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ func (cb *ComboBox) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr) u

case win.CBN_SELCHANGE:
cb.selChangeIndex = selIndex
cb.currentIndexChangedPublisher.Publish()

case win.CBN_SELENDCANCEL:
if cb.selChangeIndex != -1 {
Expand Down

0 comments on commit b70e57b

Please sign in to comment.