From: John L. <jla...@gm...> - 2007-12-21 22:33:14
|
On Dec 19, 2007 9:22 AM, Klaas Holwerda <db...@nl...> wrote: > Hi John or other wrappers, > > Do you have an idea how i can wrap the next (static const member ) > > class A2DEDITORDLLEXP a2dDrawRectangleTool: public a2dStDrawTool > { > public: > static const a2dCommandId COMID_PushTool_DrawRectangle; > > > I tried: > > %class %noclassinfo a2dCommandId > %endclass > > %class %noclassinfo a2dDrawRectangleTool > %member const a2dCommandId COMID_PushTool_DrawRectangle; > %endclass > > And although this compiles in C++, the next line is a not working in wxLua. > > wx.a2dMaskProc:PushTool( wx.a2dDrawRectangleTool.COMID_PushTool_DrawRectangle ) > > Error: lua: Syntax error during pre-compilation > [string "*tools.lua"]:2: function arguments expected near ')' > > Or am i doing something wrong to call it? You don't have the static keyword after the %member tag. I think that should work. Compare the C++ output with that of wxPoint's x %member. > I must admit i am not using the latest CVS version. I don't remember if the last release supports this, there's been many changes and fixes for things like this. Regards, John |