SetCellHighlightPenWidth problems

Hello,

I have encountered a weird problem with wx.grid.Grid where
cells with the ReadOnly attribute do not respect the
SetCellHighlightPenWidth setting. Below you will find a test

<snip>

        # set cursor width
        self.SetCellHighlightPenWidth(-1)

I think you meant:

          # set cursor width
          self.SetCellHighlightPenWidth(3)

It seems like a bug, or maybe is an undocumented "feature". Robin will have a better answer. In the meanwhile, try to use this function instead:

          # set cursor width
          self.SetCellHighlightROPenWidth(3)

I have absolutely no idea about the difference between the two methods (and also about the names, what does "RO" mean?!?!), but it seems to work here.

HTH.

Andrea.

···

_________________________________________
Andrea Gavana (gavana@kpo.kz)
Reservoir Engineer
KPDL
4, Millbank
SW1P 3JA London

Direct Tel: +44 (0) 20 717 08936
Mobile Tel: +44 (0) 77 487 70534
Fax: +44 (0) 20 717 08900
Web: http://xoomer.virgilio.it/infinity77
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯