moved test for valid controlpart into this method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -107,9 +107,12 @@ void wxButton::Command (wxCommandEvent & event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxButton::MacHandleControlClick( ControlHandle control , SInt16 controlpart )
|
void wxButton::MacHandleControlClick( ControlHandle control , SInt16 controlpart )
|
||||||
|
{
|
||||||
|
if ( controlpart != kControlNoPart )
|
||||||
{
|
{
|
||||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId );
|
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId );
|
||||||
event.SetEventObject(this);
|
event.SetEventObject(this);
|
||||||
ProcessCommand(event);
|
ProcessCommand(event);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -107,9 +107,12 @@ void wxButton::Command (wxCommandEvent & event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxButton::MacHandleControlClick( ControlHandle control , SInt16 controlpart )
|
void wxButton::MacHandleControlClick( ControlHandle control , SInt16 controlpart )
|
||||||
|
{
|
||||||
|
if ( controlpart != kControlNoPart )
|
||||||
{
|
{
|
||||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId );
|
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId );
|
||||||
event.SetEventObject(this);
|
event.SetEventObject(this);
|
||||||
ProcessCommand(event);
|
ProcessCommand(event);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user