I have a dialog with a wxListCtrl that supports double-click selection.
The problem is that if the double-click occurs over a region of the under
lying GUI that traps a left up mouse event, the left up mouse event is
trapped. It seems the dialog disappears on the second mouse down and then
the last mouse up is trapped below.
How can I keep the double click action and not get the mouse up action?
LINUX 8.2
Python 2.2.1
wxGTK 2.4.0
···
--
Nigel W. Moriarty
Building 4R0230
Physical Biosciences Division
Lawrence Berkeley National Laboratory
Berkeley, CA 94720-8235
Phone : 510-486-5709
Fax : 510-486-5909
Email : NWMoriarty@LBL.gov
Web : CCI.LBL.gov
I have a dialog with a wxListCtrl that supports double-click selection. The problem is that if the double-click occurs over a region of the under
lying GUI that traps a left up mouse event, the left up mouse event is
trapped. It seems the dialog disappears on the second mouse down and then
the last mouse up is trapped below.
I've seen this before too. For example double clicking in a file dialog that is over the superdoodle sample... I havn't really looked into the problem yet, and I expect that it's deep down in the C++, but a possible workaround is to not do anything in your EVT_LEFT_UP handler unless you also handled the EVT_LEFT_DOWN. So you could set some flag in the left down and then check it in the left up and reset it and do your thing only if it was set.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!