git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55920
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
//
// Test wxSampleMultiButtonEditor
//
// Test wxSampleMultiButtonEditor
- wxPGEditor* pSampleMultiButtonEditor = new wxSampleMultiButtonEditor();
- wxPropertyGrid::RegisterEditorClass(pSampleMultiButtonEditor);
pg->Append( new wxLongStringProperty(wxT("MultipleButtons"), wxPG_LABEL) );
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")) );
// Test SingleChoiceProperty
pg->Append( new SingleChoiceProperty(wxT("SingleChoiceProperty")) );
// Register all editors (SpinCtrl etc.)
m_pPropGridManager->RegisterAdditionalEditors();
// 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);
//
// Create menubar
wxMenu *menuFile = new wxMenu(wxEmptyString, wxMENU_TEAROFF);
wxWindow* m_panel;
wxBoxSizer* m_topSizer;
wxWindow* m_panel;
wxBoxSizer* m_topSizer;
+ wxPGEditor* m_pSampleMultiButtonEditor;
wxPGChoices m_combinedFlags;
wxMenuItem* m_itemCatColours;
wxPGChoices m_combinedFlags;
wxMenuItem* m_itemCatColours;