#ifdef __WXMSW__
#include <windows.h>
-
-#ifdef DrawText
-#undef DrawText
-#endif
-
+#include "wx/msw/winundef.h"
#endif
#if !USE_SHARED_LIBRARY
m_borderX = wxTHICK_LINE_BORDER;
m_borderY = wxTHICK_LINE_BORDER;
- bool success = wxWindow::Create(parent, id, pos, size, style, name);
+ bool success = wxWindow::Create(parent, id, pos, size, style | wxTAB_TRAVERSAL, name);
// Don't wish this to be found as a child
parent->GetChildren().DeleteObject(this);
int xpos = rect.x + leftMargin;
int ypos = (int) (((rect.height - y) / 2 ) + rect.y + 0.5) ;
+
+#ifdef __WXGTK__
+ xpos++;
+ ypos++;
+#endif
dc.SetClippingRegion(rect.x, rect.y, rect.width, rect.height);