//
// Test wxSampleMultiButtonEditor
- wxPGEditor* pSampleMultiButtonEditor = new wxSampleMultiButtonEditor();
- wxPropertyGrid::RegisterEditorClass(pSampleMultiButtonEditor);
pg->Append( new wxLongStringProperty(wxT("MultipleButtons"), wxPG_LABEL) );
- pg->SetPropertyEditor(wxT("MultipleButtons"), pSampleMultiButtonEditor );
+ pg->SetPropertyEditor(wxT("MultipleButtons"), m_pSampleMultiButtonEditor );
// Test SingleChoiceProperty
pg->Append( new SingleChoiceProperty(wxT("SingleChoiceProperty")) );
// Register all editors (SpinCtrl etc.)
m_pPropGridManager->RegisterAdditionalEditors();
+ // Register our sample custom editors
+ m_pSampleMultiButtonEditor =
+ wxPropertyGrid::RegisterEditorClass(new wxSampleMultiButtonEditor());
+
//
// Create menubar
wxMenu *menuFile = new wxMenu(wxEmptyString, wxMENU_TEAROFF);