Hi,

I have in my binding file:

%class %noclassinfo a2dRestrictionEngine, a2dEvtHandler
%endclass

%enum a2dRestrictionEngine::a2dSnapToWhat
         snapToGridPosX
         snapToGridPosY
         snapToGridPos
%endenum

I did use it like this in the lua script:

cmdh:SetSnapFeatures(
        wx.a2dRestrictionEngine_snapToGridPos + 
wx.a2dRestrictionEngine_snapToPinsUnconnected +
        wx.a2dRestrictionEngine_snapToObjectPos + 
wx.a2dRestrictionEngine_snapToObjectVertexes )

And i thought it should now be used like this:

cmdh:SetSnapFeatures(
        wx.a2dRestrictionEngine.snapToGridPos + 
wx.a2dRestrictionEngine.snapToPinsUnconnected +
        wx.a2dRestrictionEngine.snapToObjectPos + 
wx.a2dRestrictionEngine.snapToObjectVertexes )


But i get an "attempt to perfrom arithmetic on field snapToGridPos ( a nil 
value ).
Obviously it does not understand that snapToGridPos is something, but i don't 
understand how to fix it.

Any ideas?

Thanks,

Klaas




-- 
Unclassified

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to