wxAuiTabCtrl is not supported

Lui Kore
Mon, 08 Mar 2010 14:35:34 -0000

When calling AuiNotebook#children, I got an error:
Error wrapping object: class wxAuiTabCtrl is not supported in wxRuby


It''s exactly the object I want to set_tool_tip on.
I don''t know how to use swig, I tried the following:


// AuiTabCtrl.i
%include "../common.i"
%module(directors="1") wxAuiTabCtrl
GC_MANAGE_AS_WINDOW(wxAuiTabCtrl);
SWIG_WXWINDOW_NO_USELESS_VIRTUALS(wxAuiTabCtrl);
%import "include/wxControl.h"
%import "include/wxEvtHandler.h"
%import "include/wxWindow.h"
%import "include/wxObject.h"
%import "include/wxAuiNotebook.h"
%include "include/wxAuiTabCtrl.h"


// include/wxAuiTabCtrl.h
#ifndef _wxAuiTabCtrl_h_
#define _wxAuiTabCtrl_h_
class wxAuiTabCtrl : public wxControl {};
#endif


// and added this line in parents.rb
''wxAuiTabCtrl'' => ''wxControl'',


But the generated class just doesn''t compile. Any hint?
--
Posted via http://www.ruby-forum.com/.