Don't allow rich text content in non-rich wxTextCtrl in wxOSX.

Explicitly disable rich text content and automatic quotation marks replacement
in normal multiline text controls to make them behave closer to single line
ones and also multiline ones on other platforms.

See #16805.
This commit is contained in:
Tim Kosse 2015-07-18 02:24:39 +02:00 committed by Vadim Zeitlin
parent a4681572cc
commit 262ed2c133

View File

@ -580,6 +580,12 @@ wxNSTextViewControl::wxNSTextViewControl( wxTextCtrl *wxPeer, WXWidget w )
[tv setHorizontallyResizable:NO];
[tv setAutoresizingMask:NSViewWidthSizable];
if ( !wxPeer->HasFlag(wxTE_RICH | wxTE_RICH2) )
{
[tv setRichText:NO];
[tv setAutomaticQuoteSubstitutionEnabled:NO];
}
[m_scrollView setDocumentView: tv];
[tv setDelegate: tv];