Fix wxTextCtrl style in propgrid sample.

These controls are used only to present the text and therefore they should be read-only.
This commit is contained in:
Artur Wieczorek
2015-06-25 19:25:00 +02:00
parent b7cf54d24a
commit 6f4a83a202

View File

@@ -165,7 +165,7 @@ void FormMain::OnDumpList( wxCommandEvent& WXUNUSED(event) )
wxBoxSizer* rowsizer = new wxBoxSizer( wxHORIZONTAL );
wxTextCtrl* ed = new wxTextCtrl(dlg, wxID_ANY, text,
wxDefaultPosition, wxDefaultSize,
wxTE_MULTILINE);
wxTE_MULTILINE|wxTE_READONLY);
rowsizer->Add( ed, wxSizerFlags(1).Expand().Border(wxALL, spacing));
topsizer->Add( rowsizer, wxSizerFlags(1).Expand());
rowsizer = new wxBoxSizer( wxHORIZONTAL );
@@ -348,7 +348,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
wxBoxSizer* rowsizer = new wxBoxSizer( wxHORIZONTAL );
wxTextCtrl* ed = new wxTextCtrl(dlg, wxID_ANY, wxEmptyString,
wxDefaultPosition, wxDefaultSize,
wxTE_MULTILINE);
wxTE_MULTILINE|wxTE_READONLY);
rowsizer->Add( ed, wxSizerFlags(1).Expand().Border(wxALL, spacing));
topsizer->Add( rowsizer, wxSizerFlags(1).Expand());
rowsizer = new wxBoxSizer( wxHORIZONTAL );