]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxPropertyGridEventHandler in commented-out sample connect code
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 27 Sep 2008 15:17:21 +0000 (15:17 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 27 Sep 2008 15:17:21 +0000 (15:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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 );