Discussion:
[wxX11] Popup menu created from wxGridEvent handler doesn't generate events.
Деян Хаджиев
2014-07-21 13:00:04 UTC
Permalink
Hi,

I'm debugging a project written to work with wxWidgets 2.8.12. However I
encountered a bug, that I could not think of an easy workaround for.
I have a class decending from wxGrid, and some elements on it. I want to
have a right-click popup window for the elements, but after handling the
right mouse event and creating the wxMenu for the call to PopupMenu, the
click on the popup window itself doesn't generate any events. I even tried
with wxApp::FilterEvents(..) but cought no events with the specified Id in
the menu creation. This problem is only on Linux (wxX11) and everything
works fine on wxGTK, and the other operating systems.
Do you know what can I do to catch the desired events? TIA.

Regards
Deyan Hadzhiev
--
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
Vadim Zeitlin
2014-07-21 13:45:43 UTC
Permalink
On Mon, 21 Jul 2014 06:00:04 -0700 (PDT) ДеяМ ХаЎжОев wrote:

ДХ> I'm debugging a project written to work with wxWidgets 2.8.12. However I
ДХ> encountered a bug, that I could not think of an easy workaround for.
ДХ> I have a class decending from wxGrid, and some elements on it. I want to
ДХ> have a right-click popup window for the elements, but after handling the
ДХ> right mouse event and creating the wxMenu for the call to PopupMenu, the
ДХ> click on the popup window itself doesn't generate any events. I even tried
ДХ> with wxApp::FilterEvents(..) but cought no events with the specified Id in
ДХ> the menu creation. This problem is only on Linux (wxX11) and everything
ДХ> works fine on wxGTK, and the other operating systems.
ДХ> Do you know what can I do to catch the desired events? TIA.

I'd strongly advise you to test the repository of GSoC 2014 project
working on wxX11, see https://github.com/Daetalus/wxWidgets/tree/SOC2014_UNIV
Many fixes have been already done there and so maybe this problem was among
them.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Деян Хаджиев
2014-07-21 14:32:08 UTC
Permalink
Thanks, I will try it.
Post by Vadim Zeitlin
ДХ> I'm debugging a project written to work with wxWidgets 2.8.12. However I
ДХ> encountered a bug, that I could not think of an easy workaround for.
ДХ> I have a class decending from wxGrid, and some elements on it. I want to
ДХ> have a right-click popup window for the elements, but after handling the
ДХ> right mouse event and creating the wxMenu for the call to PopupMenu, the
ДХ> click on the popup window itself doesn't generate any events. I even tried
ДХ> with wxApp::FilterEvents(..) but cought no events with the specified Id in
ДХ> the menu creation. This problem is only on Linux (wxX11) and everything
ДХ> works fine on wxGTK, and the other operating systems.
ДХ> Do you know what can I do to catch the desired events? TIA.
I'd strongly advise you to test the repository of GSoC 2014 project
working on wxX11, see
https://github.com/Daetalus/wxWidgets/tree/SOC2014_UNIV
Many fixes have been already done there and so maybe this problem was among
them.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
--
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
Loading...