Tobias Abt
2014-09-05 07:15:42 UTC
Hi,
Sorry, I forgot to mention this problem was under Windows (7) with wxWidgets 3.0.1.
Anyway, I found the cause:
1. wxWindows per default accept double clicks.
2. In this case the following events are generated: WM_LBUTTONDOWN WM_LBUTTONUP WM_LBUTTONDBLCLK WM_LBUTTONUP
(see msdn.microsoft.com/en-us/library/windows/desktop/gg153548(v=vs.85).aspx)
So the solution is pretty simple:
Add
"EVT_LEFT_DCLICK(wxRibbonButtonBar::OnMouseDown)" in ribbon\buttonbar.cpp and
"EVT_LEFT_DCLICK(wxRibbonToolBar::OnMouseDown)" in ribbon\toolbar.cpp
to the event table macro, and the RibbonBar reacts like it's expected.
Is there a chance this change is getting into the trunk?
Regards,
Tobi
Von: wx-***@googlegroups.com <mailto:wx-***@googlegroups.com> [mailto:wx-***@googlegroups.com <mailto:wx-***@googlegroups.com> ] Im Auftrag von Tobias Abt
Gesendet: Mittwoch, 20. August 2014 17:37
An: 'wx-***@googlegroups.com'
Betreff: [MASSMAIL]Two fast clicks on wxRibbonBar: only one click comes through
Hi.
Is there a way to get the wxRibbonBar to recognize fast mouse clicks?
It seems as if the ribbonbar "converts" a double click into a single click... I have some navigation buttons, for which this behavior is very annoying.
In the ribbon-demo: clicking on the buttons which write to the log only works, if the clicks are slow enough.
I looked into the event-handler of the button and the second OnMouseDown-event is never fired with two fast clicks (only the second OnMouseUp-Event, which is discarded).
Regards,
Tobi
Sorry, I forgot to mention this problem was under Windows (7) with wxWidgets 3.0.1.
Anyway, I found the cause:
1. wxWindows per default accept double clicks.
2. In this case the following events are generated: WM_LBUTTONDOWN WM_LBUTTONUP WM_LBUTTONDBLCLK WM_LBUTTONUP
(see msdn.microsoft.com/en-us/library/windows/desktop/gg153548(v=vs.85).aspx)
So the solution is pretty simple:
Add
"EVT_LEFT_DCLICK(wxRibbonButtonBar::OnMouseDown)" in ribbon\buttonbar.cpp and
"EVT_LEFT_DCLICK(wxRibbonToolBar::OnMouseDown)" in ribbon\toolbar.cpp
to the event table macro, and the RibbonBar reacts like it's expected.
Is there a chance this change is getting into the trunk?
Regards,
Tobi
Von: wx-***@googlegroups.com <mailto:wx-***@googlegroups.com> [mailto:wx-***@googlegroups.com <mailto:wx-***@googlegroups.com> ] Im Auftrag von Tobias Abt
Gesendet: Mittwoch, 20. August 2014 17:37
An: 'wx-***@googlegroups.com'
Betreff: [MASSMAIL]Two fast clicks on wxRibbonBar: only one click comes through
Hi.
Is there a way to get the wxRibbonBar to recognize fast mouse clicks?
It seems as if the ribbonbar "converts" a double click into a single click... I have some navigation buttons, for which this behavior is very annoying.
In the ribbon-demo: clicking on the buttons which write to the log only works, if the clicks are slow enough.
I looked into the event-handler of the button and the second OnMouseDown-event is never fired with two fast clicks (only the second OnMouseUp-Event, which is discarded).
Regards,
Tobi
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users