Hi,
I have a wx.TreeCtrl and want to react on the left mouse up event. There are several approaches ,e.g. with EVT_LEFT_UP or EVT_MOUSE_EVENTS, but all fails when I click on a tree item. It seems that in that case the event is used internally to change the focus of the tree item and isn't skipped.
I have added a sample program where you can test the behaviour. Just try to perform the left down and the left up mouse event on the same tree item. No "LeftUp" will be printed, which is the problem. On the other hand, if you click elsewhere in the list control a "LeftUp" will appear.
Do you know any workarounds to react on the left mouse up event? I can't use the tree selection changed event, because I only want to react on mouse events.
Some info to my platform:
wxWidgets 2.8.8.1 (wxMSW, unicode, wx-assertions-on, SWIG-1.3.29) Running on Python 2.5.2, Windows XP Pro SP 3
Awaiting your answers
Christian
treectrl.py (1.2 KB)