[wxPython] (no subject)

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 thank you in advance.

···

Corey C. Donicz

Software Engineer

CRI, Inc., 35-B Cabot Rd.

Woburn, MA 01801

Tel: 781.935.9099

cdonicz@cri-inc.com

http://www.cri-inc.com

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 thank you in advance.

----
greg Landrum (greglandrum@earthlink.net)
Software Carpenter/Computational Chemist

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

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.

Try the grid events that Greg mentioned.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users