On Jan 17, 2008 1:39 PM, Eero Pajarre <[EMAIL PROTECTED]> wrote: > I dont really get why wxListBox with two parameters is not accepted > with wxLua. It was accepted on some previous version, and it > looks like that wxWidgets library would accept two parameter version. > > Specifically > -----test.lua--- > frame=wx.wxFrame(wx.NULL,-1,"Test",wx.wxPoint(-1,-1),wx.wxSize(800,600)); > lb=wx.wxListBox(frame,-1) > ------------------ > > causes: > > test.lua:2: wxLua: Function call has invalid arguments.Function > called: 'wxListBox(wxFrame, number)' > 01. wxListBox::wxListBox(wxWindow, number, wxPoint [, wxSize, > wxArrayString, number, wxValidator, string]) > 02. wxListBox::wxListBox() > stack traceback: > [C]: in function 'wxListBox' > test.lua:2: in main chunk > > I have tried to follow where the problem starts, and currently I am > starting to suspect > genwxbind.lua ..... >
No, it was actually the bindings themselves. I had changed from using the old style "int count, wxString* items" to "const wxArrayString& items", but since the C++ version requires you to input "wxWindow, id, pos, size, wxArrayString, ..." I didn't remove the defaults for pos and size or as I've done now added a suitable default value for the wxArrayString. Should work with only two inputs now. Thanks, John ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users