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:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user