git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71783
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#define WXUNUSED_GTK(identifier) identifier
#endif
#define WXUNUSED_GTK(identifier) identifier
#endif
+#ifdef __WXOSX__
+#include "wx/osx/private.h"
+#endif
+
// Required for wxIs... functions
#include <ctype.h>
// Required for wxIs... functions
#include <ctype.h>
wxDefaultPosition, wxDefaultSize,
style);
wxDefaultPosition, wxDefaultSize,
style);
+#ifdef __WXOSX__
+ wxWidgetImpl* impl = m_control->GetPeer();
+ impl->SetNeedsFocusRect(false);
+#endif
// set max length allowed in the textctrl, if the parameter was set
if ( m_maxChars != 0 )
{
// set max length allowed in the textctrl, if the parameter was set
if ( m_maxChars != 0 )
{
rect.width -= 2;
rect.height -= 2;
rect.width -= 2;
rect.height -= 2;
+#elif defined(__WXOSX__)
+ rect.x += 1;
+ rect.y += 1;
+
+ rect.width -= 1;
+ rect.height -= 1;
#else
int extra_x = ( rect.x > 2 ) ? 2 : 1;
int extra_y = ( rect.y > 2 ) ? 2 : 1;
#else
int extra_x = ( rect.x > 2 ) ? 2 : 1;
int extra_y = ( rect.y > 2 ) ? 2 : 1;