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?
on 2010-03-08 15:35
on 2010-03-23 21:31
Hi Sorry for the delay On 08/03/2010 14:35, Lui Kore wrote: > 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: > > We'd be pleased to add this class in a future version .... > // include/wxAuiTabCtrl.h > #ifndef _wxAuiTabCtrl_h_ > #define _wxAuiTabCtrl_h_ > class wxAuiTabCtrl : public wxControl {}; > #endif > Here you probably need at least the constructor definition and public methods: { public: wxAuiTabCtrl(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); ~wxAuiTabCtrl(); #if wxABI_VERSION >= 20805 bool IsDragging() const { return m_is_dragging; } #endif }; Have a look at one of the other working classes - currently SWIG relies on having the constructor and method declarations here to wrap them. hth alex
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.