Use wxID_ANY symbol for controls in propgrid sample.
This commit is contained in:
		| @@ -46,7 +46,7 @@ MyFrame::MyFrame(wxWindow* parent) | |||||||
|     MenuBar->Append(Menu, wxT("Action")); |     MenuBar->Append(Menu, wxT("Action")); | ||||||
|     SetMenuBar(MenuBar); |     SetMenuBar(MenuBar); | ||||||
|  |  | ||||||
|     wxPropertyGrid *pg = new wxPropertyGrid(this,-1,wxDefaultPosition,wxSize(400,400), |     wxPropertyGrid *pg = new wxPropertyGrid(this,wxID_ANY,wxDefaultPosition,wxSize(400,400), | ||||||
|                         wxPG_SPLITTER_AUTO_CENTER | |                         wxPG_SPLITTER_AUTO_CENTER | | ||||||
|                         wxPG_BOLD_MODIFIED ); |                         wxPG_BOLD_MODIFIED ); | ||||||
|     m_pg = pg; |     m_pg = pg; | ||||||
|   | |||||||
| @@ -123,7 +123,7 @@ void FormMain::OnDumpList( wxCommandEvent& WXUNUSED(event) ) | |||||||
|     wxString text = wxT("This only tests that wxVariant related routines do not crash."); |     wxString text = wxT("This only tests that wxVariant related routines do not crash."); | ||||||
|     wxString t; |     wxString t; | ||||||
|  |  | ||||||
|     wxDialog* dlg = new wxDialog(this,-1,wxT("wxVariant Test"), |     wxDialog* dlg = new wxDialog(this,wxID_ANY,wxT("wxVariant Test"), | ||||||
|         wxDefaultPosition,wxDefaultSize,wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER); |         wxDefaultPosition,wxDefaultSize,wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER); | ||||||
|  |  | ||||||
|     unsigned int i; |     unsigned int i; | ||||||
| @@ -335,7 +335,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive ) | |||||||
|     wxArrayString errorMessages; |     wxArrayString errorMessages; | ||||||
|     wxDialog* dlg = NULL; |     wxDialog* dlg = NULL; | ||||||
|  |  | ||||||
|     dlg = new wxDialog(this,-1,wxT("wxPropertyGrid Regression Tests"), |     dlg = new wxDialog(this,wxID_ANY,wxT("wxPropertyGrid Regression Tests"), | ||||||
|         wxDefaultPosition,wxDefaultSize,wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER); |         wxDefaultPosition,wxDefaultSize,wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER); | ||||||
|  |  | ||||||
|     // multi-line text editor dialog |     // multi-line text editor dialog | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user