From 7b8da40c8e111e227aa3c016d1975e13a505b729 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 15 Feb 2015 23:26:42 +0000 Subject: [PATCH] Display additional information for EVT_PG_SELECTED event in propgrid sample. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/propgrid/propgrid.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index 9cc9bc7cbe..bef0fc469b 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -1763,9 +1763,12 @@ wxBEGIN_EVENT_TABLE(wxMyPropertyGridPage, wxPropertyGridPage) wxEND_EVENT_TABLE() -void wxMyPropertyGridPage::OnPropertySelect( wxPropertyGridEvent& WXUNUSED(event) ) +void wxMyPropertyGridPage::OnPropertySelect( wxPropertyGridEvent& event ) { - wxLogDebug(wxT("wxMyPropertyGridPage::OnPropertySelect()")); + wxPGProperty* p = event.GetProperty(); + wxLogDebug(wxT("wxMyPropertyGridPage::OnPropertySelect('%s' is %s"), + p->GetName().c_str(), + IsPropertySelected(p)? wxT("selected"): wxT("unselected")); } void wxMyPropertyGridPage::OnPropertyChange( wxPropertyGridEvent& event )