Stéphane Larouche
unread,May 24, 2012, 6:25:52 PM5/24/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wxpytho...@lists.wxwidgets.org
The middle button seems to have a strange effect in grids. In particular, if I
hold it down it creates a visual selection of cells, like a range selection, but
that does not trigger a EVT_GRID_RANGE_SELECT event.
What I would like to do is that my grid completely ignores all click events on
the middle button. I have tried to catch EVT_MIDDLE_DOWN, EVT_MIDDLE_UP,
EVT_MIDDLE_DCLICK events. If I bind them to the grid, using
my_grid.Bind(EVT_MIDDLE_DOWN, my_event_handler), for example, I do capture some
events, but not all of them. I have not been able to figure out the logic behind
what events are captured and what events are not. If I bind them to the grid
window, using my_grid.GetGridWindow().Bind(EVT_MIDDLE_DOWN, my_event_handler),
for example, I do catch all middle button events, but even if I don't propagate
them (not using event.Skip()), a visual selection is still created.
Does anyone know a solution to that problem?
Thank you for your help.
Stéphane