I try to add an icon to an wxFrame, like this:
>icon= wx.wxIcon()
>icon.LoadFile("PianoForte.ico", wxBITMAP_TYPE_ICON_RESOURCE)
The wxLua interpreter response is:
>Expected an 'integer enum' for parameter 3, but got a 'no value'.
How can I get this enum value? Lua does not support integers, so it must be a C library. Appending 'wx.' to the enum constant does not yield a value.
I think you're looking for wxBITMAP_TYPE_ICO_RESOURCE. wxLua checks that enum parameters are at least integer.
http://docs.wxwidgets.org/trunk/gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5
http://wxlua.sourceforge.net/docs/wxluaref.html#wxBitmapType