On Mon, Jan 27, 2014 at 8:33 PM, Moses McKnight <mo...@texband.net> 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
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users