Create multiline controls with wxTE_RICH2 in wxTextEntryDialog
While wxMSW now turns this style on automatically if necessary, it's still better to avoid the failure during the initial control creation, so enable wxTE_RICH2 from the beginning in wxTextEntryDialog, where it shouldn't result in any incompatibilities.
This commit is contained in:
parent
d585bb1ebd
commit
b744e271e3
@ -97,7 +97,11 @@ bool wxTextEntryDialog::Create(wxWindow *parent,
|
||||
topsizer->Add(CreateTextSizer(message), flagsBorder2);
|
||||
#endif
|
||||
|
||||
// 2) text ctrl
|
||||
// 2) text ctrl: create it with wxTE_RICH2 style to allow putting more than
|
||||
// 64KiB of text into it
|
||||
if ( style & wxTE_MULTILINE )
|
||||
style |= wxTE_RICH2;
|
||||
|
||||
m_textctrl = new wxTextCtrl(this, wxID_TEXT, value,
|
||||
wxDefaultPosition, wxSize(300, wxDefaultCoord),
|
||||
style & ~wxTextEntryDialogStyle);
|
||||
|
Loading…
Reference in New Issue
Block a user