1. wxInputHandler::Map() can return a sequence of actions, not only one
2. wxControl::PerformAction() takes a wxEvent parameter 3. wxGTK fix: send enter/leave events even when the mouse is captured 4. renamed "highlighted" state to "current" git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -151,7 +151,8 @@ void wxButton::Click()
|
||||
Command(event);
|
||||
}
|
||||
|
||||
bool wxButton::PerformAction(const wxControlAction& action)
|
||||
bool wxButton::PerformAction(const wxControlAction& action,
|
||||
const wxEvent& event)
|
||||
{
|
||||
bool wasPressed = IsPressed();
|
||||
|
||||
@@ -164,7 +165,7 @@ bool wxButton::PerformAction(const wxControlAction& action)
|
||||
else if ( action == wxACTION_BUTTON_RELEASE )
|
||||
Release();
|
||||
else
|
||||
return wxControl::PerformAction(action);
|
||||
return wxControl::PerformAction(action, event);
|
||||
|
||||
return wasPressed != IsPressed();
|
||||
}
|
||||
|
Reference in New Issue
Block a user