From: John L. <jla...@gm...> - 2014-01-28 07:20:44
|
On Mon, Jan 27, 2014 at 8:33 PM, Moses McKnight <mo...@te...> wrote: > Hi, > > I am using wxlua which is embedded in a program using wxwidgets 2.8.12. > > I am trying to set client data to items in a wxChoice something like > this like this: > > somenumber = 3 > cbJointType:Append("Bevel", somenumber) > > But if I try to get the client data later it just always returns 0. > According to the wxlua ref manual it looks like this should work to me: > > int Append(const wxString& item, voidptr_long number); // C++ is (void > *clientData) You can put a number here > > http://wxlua.sourceforge.net/docs/wxluaref.html#wxItemContainer > > Am I doing something wrong here? > > No, this looks like a bug in how overloaded class member functions declared in more than one base class are handled. What you're seeing is that the call to GetClientData() is actually calling the wxEvtHandler base class function, similarly, SetClientData(n, val) also calls the wxEvtHandler function. This will require some work to fix it right. Regards, John |