From adea5244930c7f9e5f17c99e3415db12464fae78 Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Sat, 27 Sep 2008 15:17:21 +0000 Subject: [PATCH] Use wxPropertyGridEventHandler in commented-out sample connect code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/propgrid/propgrid.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index c7941adb32..f37c78166f 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -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 );