I was wondering if it is possible to catch mouse events within a wxGrid object? I’ve tried the standard approach of EVT_MOUSE_EVENT etc…, but to no avail.
I'm not sure if this is what you are looking for, but you can register for grid events with:
EVT_GRID_CELL_LEFT_CLICK
EVT_GRID_CELL_LEFT_DCLICK
EVT_GRID_LABEL_LEFT_CLICK
and related functions.
I hope this helps,
-greg
···
At 06:02 AM 11/28/2000, you wrote:
Hello,
I was wondering if it is possible to catch mouse events within a wxGrid object? I've tried the standard approach of EVT_MOUSE_EVENT etc..., but to no avail.
I was wondering if it is possible to catch mouse events within
a wxGrid object? I've tried the standard approach of
EVT_MOUSE_EVENT etc..., but to no avail.
Not directly. The wxGrid is actually composed of several sub-windows and
so hooking a mouse event handler to the grid itself doesn't work. There is
currently no way to get a reference to the subwindows. If there were then
you could hook the event handers to them and all would be peachy.