[wxruby-users] wxAuiTabCtrl is not supported

Alex Fenton
Tue, 23 Mar 2010 20:30:42 -0000

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