# wxAuiTabCtrl is not supported

**URL:** <https://www.ruby-forum.com/t/wxauitabctrl-is-not-supported/184778>\
**Category:** wxRuby\
**Created:** [March 8, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/wxauitabctrl-is-not-supported/184778 "2010-03-08T15:35:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![night\_stalker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f0a364/32.png) [@night\_stalker](https://www.ruby-forum.com/u/night_stalker)\
**Post date:** [March 8, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/wxauitabctrl-is-not-supported/184778/1 "2010-03-08T15:35:34Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![night\_stalker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f0a364/32.png) [@night\_stalker](https://www.ruby-forum.com/u/night_stalker)\
**Post date:** [March 23, 2010, 9:31pm UTC](https://www.ruby-forum.com/t/wxauitabctrl-is-not-supported/184778/2 "2010-03-23T21:31:24Z")

</div>

Hi

Sorry for the delay

On 08/03/2010 14:35, Lui K. 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
