Misc changes, including to wxPropertyForm and sample to make it work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -242,6 +242,20 @@ void wxPropertyFormView::OnCommand(wxWindow& win, wxCommandEvent& event)
|
||||
}
|
||||
}
|
||||
|
||||
// Extend event processing to call OnCommand
|
||||
bool wxPropertyFormView::ProcessEvent(wxEvent& event)
|
||||
{
|
||||
if (wxEvtHandler::ProcessEvent(event))
|
||||
return TRUE;
|
||||
else if (event.IsCommandEvent() && !event.IsKindOf(CLASSINFO(wxUpdateUIEvent)) && event.GetEventObject())
|
||||
{
|
||||
OnCommand(* ((wxWindow*) event.GetEventObject()), (wxCommandEvent&) event);
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void wxPropertyFormView::OnDoubleClick(wxControl *item)
|
||||
{
|
||||
if (!m_propertySheet)
|
||||
|
||||
Reference in New Issue
Block a user