dontpanic92 / wxGo

Golang wxWidgets Wrapper
Other
403 stars 51 forks source link

Missing wx.NewListBox overload #56

Open axelniedenhoff opened 6 years ago

axelniedenhoff commented 6 years ago

According to wxWidgets reference, there should be a two-argument version of the wx.NewListBox call. The C++ constructor is documented here: http://docs.wxwidgets.org/3.0/classwx_list_box.html#a4a86e0f4b5ed9ebea4ca2156941fb2e9

When I try to do something like the following:

listBox := wx.NewListBox(myFrame, wx.ID_ANY)

I get:

panic: No match for overloaded function call

This is not a severe problem, as you can always use other overloads instead. Just for completeness’ sake…