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.
Closes #16805.
(this is a backport of 262ed2c133
and
3465d659fee0313a6dc650074432c3c435e4a83e from master)
This commit is contained in:
@@ -644,6 +644,7 @@ wxOSX:
|
||||
- Send wxIconizeEvent when a window is iconized/restore (Rob Krakora).
|
||||
- Use correct colour for disabled wxStaticText (sbrowne).
|
||||
- Fix initial position of controls with layout insets (Tim Kosse).
|
||||
- Don't allow pasting rich text in non-wxTE_RICH text controls (Tim Kosse).
|
||||
- Fix printing all pages non-interactively (John Roberts).
|
||||
- Fix custom paper support (tijsv).
|
||||
- Return false from wxSound::Create()/IsOk() if the file doesn't exist.
|
||||
|
@@ -580,6 +580,11 @@ wxNSTextViewControl::wxNSTextViewControl( wxTextCtrl *wxPeer, WXWidget w )
|
||||
[tv setHorizontallyResizable:NO];
|
||||
[tv setAutoresizingMask:NSViewWidthSizable];
|
||||
|
||||
if ( !wxPeer->HasFlag(wxTE_RICH | wxTE_RICH2) )
|
||||
{
|
||||
[tv setRichText:NO];
|
||||
}
|
||||
|
||||
[m_scrollView setDocumentView: tv];
|
||||
|
||||
[tv setDelegate: tv];
|
||||
|
Reference in New Issue
Block a user