EVT_LEFT_UP

I am finding some weird functionality of EVT_LEFT_UP with at least the tree control in Windows. The handler is only called if you double-click on an Item on a tree (in other words, two "ups" in a row), but if you are not clicking on an actual item in the tree,but a random spot in the tree control, it gets called when expected. Anyone else run into this?

Gilad

What it seems like is EVT_RIGHT/LEFT_UP do not call their handlers on
Windows, unless EVT_LEFT/RIGHT_DOWN has a handler (even if the function just
calls "pass").

Gilad

···

----- Original Message -----
From: "Gilad Suberri" <gsuberri@eos.east.hitc.com>
To: "wxPython-users" <wxpython-users@lists.wxwindows.org>
Sent: Thursday, October 16, 2003 2:58 PM
Subject: [wxPython-users] EVT_LEFT_UP

I am finding some weird functionality of EVT_LEFT_UP with at least the tree
control in Windows. The handler is only called if you double-click on an
Item on a tree (in other words, two "ups" in a row), but if you are not
clicking on an actual item in the tree,but a random spot in the tree
control, it gets called when expected. Anyone else run into this?

Gilad

I wrestled with the mouse events at length before I found the right
combination to get the behavior I wanted. I had this problem with
EVT_RIGHT_DOWN; solved it by removing event.Skip() from the handler method
for that event. Good luck.

Paul

···

-----Original Message-----
From: Gilad Suberri [mailto:gsuberri@eos.east.hitc.com]
Sent: Thursday, October 16, 2003 2:58 PM
To: wxPython-users
Subject: [wxPython-users] EVT_LEFT_UP

I am finding some weird functionality of EVT_LEFT_UP with at least the tree
control in Windows. The handler is only called if you double-click on an
Item on a tree (in other words, two "ups" in a row), but if you are not
clicking on an actual item in the tree,but a random spot in the tree
control, it gets called when expected. Anyone else run into this?

Gilad