On Dec 19, 2007 9:22 AM, Klaas Holwerda <[EMAIL PROTECTED]> 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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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

Reply via email to