Hi,

Is it possible to extend wxArtProvider in wxLua? wx's document shows 
following sample:

   class MyProvider : public wxArtProvider
   {
   protected:
     wxBitmap CreateBitmap(const wxArtID& id,
                           const wxArtClient& client,
                           const wxSize size)
     { ... }
   };
   ...
   wxArtProvider::Push(new MyProvider);


I tried as following, but didn't work:

local artprovider = wx.wxArtProvider() --error: attempt to call field
function artprovider:CreateBitmap(id, client, size)
     return wx.wxBitmap(testxpm)
end
wx.wxArtProvider.Push(artprovider)


--
Regards,
Hakki Dogusan

-------------------------------------------------------------------------
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