I'm trying the attached patch with the demo simple grid example. My aim is to disallow highlighting a column when the user clicks on it. However, even though the logs are getting through, the evt.Veto() call doesn't seem to actually veto the column selection.
--
Grzegorz Adam Hankiewicz, Jefe de producto de TeraVial
Rastertech España S.A. Tel: +34 918 467 390, ext 18. http://www.rastertech.es/ ghankiewicz@rastertech.es
Grzegorz Adam Hankiewicz <ghankiewicz <at> rastertech.es> writes:
I'm trying the attached patch with the demo simple grid example. My aim
is to disallow highlighting a column when the user clicks on it.
However, even though the logs are getting through, the evt.Veto() call
doesn't seem to actually veto the column selection.
Although this event derives from NotifyEvent the docs do not explicitly
mention that it can be vetoed (like e.g. in the TreeEvent docs) thus it is
probably not possible.
I'm trying the attached patch with the demo simple grid example. My aim is to disallow highlighting a column when the user clicks on it. However, even though the logs are getting through, the evt.Veto() call doesn't seem to actually veto the column selection.
What am I doing wrong?
You'll need to undo the selection yourself.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!