Fix handling of fast clicks in wxRibbonBar under MSW.

Second click can result in a double click event instead of the usual simple
click if it happens quickly enough after the first one, so handle double
clicks in the same way as simple clicks instead of ignoring them.

Closes #16551.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@78322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-12-27 14:17:46 +00:00
parent a2b3702934
commit 7a8cfc7964
3 changed files with 3 additions and 0 deletions

View File

@@ -582,6 +582,7 @@ All (GUI):
- Fix several floating point rounding bugs in wxPropertyGrid (Artur Wieczorek).
- Restore support for wxFD_OVERWRITE_PROMPT and wxFD_FILE_MUST_EXIST in
wxGenericFileDialog which was accidentally lost some time ago (Carl Godkin).
- Fix handling of fast consecutive clicks in wxRibbonBar (atobi).
wxGTK:

View File

@@ -42,6 +42,7 @@ BEGIN_EVENT_TABLE(wxRibbonButtonBar, wxRibbonControl)
EVT_PAINT(wxRibbonButtonBar::OnPaint)
EVT_SIZE(wxRibbonButtonBar::OnSize)
EVT_LEFT_DOWN(wxRibbonButtonBar::OnMouseDown)
EVT_LEFT_DCLICK(wxRibbonButtonBar::OnMouseDown)
EVT_LEFT_UP(wxRibbonButtonBar::OnMouseUp)
END_EVENT_TABLE()

View File

@@ -67,6 +67,7 @@ BEGIN_EVENT_TABLE(wxRibbonToolBar, wxRibbonControl)
EVT_ERASE_BACKGROUND(wxRibbonToolBar::OnEraseBackground)
EVT_LEAVE_WINDOW(wxRibbonToolBar::OnMouseLeave)
EVT_LEFT_DOWN(wxRibbonToolBar::OnMouseDown)
EVT_LEFT_DCLICK(wxRibbonToolBar::OnMouseDown)
EVT_LEFT_UP(wxRibbonToolBar::OnMouseUp)
EVT_MOTION(wxRibbonToolBar::OnMouseMove)
EVT_PAINT(wxRibbonToolBar::OnPaint)