[wxruby-users] can't subclass AuiDockArt

Pascal Hurni lists at ruby-forum.com
Tue Nov 11 04:11:41 EST 2008


Hi,

I'm using wxRuby with the Aui classes. Everything is fine (Manager,
ToolBars, Panes, ...) and now i want to override the default drawing for
the manager.

Thus I want to use #set_art_provider to give my implementation. When
doing that I receive a SWIG exceptions:

Expected argument 1 of type wxAuiDockArt *, but got DockArtProvider
#<DockArtProvider:0x3682e5c>
        in SWIG method 'SetArtProvider'

The DockArtProvider class (ruby class) inherits from AuiDockArt like so:
  class DockArtProvider < Wx::AuiDockArt
    ...
  end

Is something wrong on my side or on SWIG's one?
-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list