Fine grained selection control in wxGrid?

Stephen Hansen wrote:

Any idea how hard it might be to adjust that timing? Or, even, to trap
single-left-clicks entirely and then selectively pass them to the grid?
(E.g., really, only send events to the grid that need to end up on the
headers, or doubleclicks, since everything else I want to behave a bit
differently....)

You can hook mouse event handlers to the component windows of the grid, (use GetGridWindow, GetGridRowLabelWindow, GetGridColLabelWindow, and GetGridCornerLabelWindow to fetch a reference to these subwindows) and then do whatever you want in those handlers. If you want to allow the default grid event handlers to run in certain cases then just call event.Skip in your handler.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!