Don’t add non-default focus ring to NSTextView
NSTextView does not natively show a focus ring by default, and it is extremely rare thing to do in native applications. Don't do it in wxTextCtrl either.
This commit is contained in:
@@ -460,10 +460,6 @@ void wxGridCellTextEditor::DoCreate(wxWindow* parent,
|
|||||||
text->SetMargins(0, 0);
|
text->SetMargins(0, 0);
|
||||||
m_control = text;
|
m_control = text;
|
||||||
|
|
||||||
#ifdef __WXOSX__
|
|
||||||
wxWidgetImpl* impl = m_control->GetPeer();
|
|
||||||
impl->EnableFocusRing(false);
|
|
||||||
#endif
|
|
||||||
// set max length allowed in the textctrl, if the parameter was set
|
// set max length allowed in the textctrl, if the parameter was set
|
||||||
if ( m_maxChars != 0 )
|
if ( m_maxChars != 0 )
|
||||||
{
|
{
|
||||||
|
@@ -1590,7 +1590,6 @@ wxWidgetImplType* wxWidgetImpl::CreateTextControl( wxTextCtrl* wxpeer,
|
|||||||
v = [[wxNSTextScrollView alloc] initWithFrame:r];
|
v = [[wxNSTextScrollView alloc] initWithFrame:r];
|
||||||
wxNSTextViewControl* t = new wxNSTextViewControl( wxpeer, v, style );
|
wxNSTextViewControl* t = new wxNSTextViewControl( wxpeer, v, style );
|
||||||
c = t;
|
c = t;
|
||||||
c->EnableFocusRing( true );
|
|
||||||
|
|
||||||
t->SetStringValue(str);
|
t->SetStringValue(str);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user