From d30c075a2283ab5f9a972447c17a8dc230dd8568 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 7 Jun 2015 23:14:37 +0200 Subject: [PATCH] Use wxID_ANY symbol for controls in propgrid sample. Don't use arbitrary control ID's. --- samples/propgrid/tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/propgrid/tests.cpp b/samples/propgrid/tests.cpp index 16bdccd6fd..e95049ea07 100644 --- a/samples/propgrid/tests.cpp +++ b/samples/propgrid/tests.cpp @@ -163,7 +163,7 @@ void FormMain::OnDumpList( wxCommandEvent& WXUNUSED(event) ) const int spacing = 8; wxBoxSizer* topsizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer* rowsizer = new wxBoxSizer( wxHORIZONTAL ); - wxTextCtrl* ed = new wxTextCtrl(dlg, 11, text, + wxTextCtrl* ed = new wxTextCtrl(dlg, wxID_ANY, text, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE); rowsizer->Add( ed, wxSizerFlags(1).Expand().Border(wxALL, spacing)); @@ -342,7 +342,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive ) const int spacing = 8; wxBoxSizer* topsizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer* rowsizer = new wxBoxSizer( wxHORIZONTAL ); - wxTextCtrl* ed = new wxTextCtrl(dlg, 11, wxEmptyString, + wxTextCtrl* ed = new wxTextCtrl(dlg, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE); rowsizer->Add( ed, wxSizerFlags(1).Expand().Border(wxALL, spacing));