-
-#if defined( __WXMAC__ ) && TARGET_API_MAC_OSX && ( MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2 )
-
-//drawer
-#include "wx/dcclient.h"
-#include "wx/mac/carbon/drawer.h"
-
-class MyDrawer : public wxDrawerWindow
-{
- public:
- MyDrawer(wxWindow* p) : wxDrawerWindow(p, wxID_ANY, wxT(""), wxSize(200,200))
- { }
-
- void OnPaint(wxPaintEvent&)
- {
- wxPaintDC dc(this);
- dc.DrawRectangle(30,30,60,60);
- }
-
- DECLARE_EVENT_TABLE()
-};
-
-BEGIN_EVENT_TABLE(MyDrawer, wxDrawerWindow)
- EVT_PAINT(MyDrawer::OnPaint)
-END_EVENT_TABLE()
-
-#endif
- //OSX 10.2+
-