]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/propgrid/propgrid.cpp
Use wxPropertyGridEventHandler in commented-out sample connect code
[wxWidgets.git] / samples / propgrid / propgrid.cpp
index c7941adb3247a0a50431e618c73df554fc04e6bf..f37c78166fc0ee3aa832ece697bb6cc97ce03ea1 100644 (file)
@@ -2040,11 +2040,9 @@ void FormMain::CreateGrid( int style, int extraStyle )
     /*
     // This would setup event handling without event table entries
     Connect(m_pPropGridManager->GetId(), wxEVT_PG_SELECTED,
-            (wxObjectEventFunction) (wxEventFunction) (wxPropertyGridEventFunction)
-            &FormMain::OnPropertyGridSelect );
+            wxPropertyGridEventHandler(FormMain::OnPropertyGridSelect) );
     Connect(m_pPropGridManager->GetId(), wxEVT_PG_CHANGED,
-            (wxObjectEventFunction) (wxEventFunction) (wxPropertyGridEventFunction)
-            &FormMain::OnPropertyGridChange );
+            wxPropertyGridEventHandler(FormMain::OnPropertyGridChange) );
     */
 
     m_topSizer->Add( m_pPropGridManager, 1, wxEXPAND );