Attached is an example that has a
masked.NumCtrl as the control for a GridCellEditor. After entering
data into the control and selecting another non NumCtrl cell it
seems to me that the control does not ‘die’ and allow the renderer to
paint the cell. If you select another NumCtrl cell then is seems to
work as expected. I have only tried on Win7 with both 2.8 and 2.9
wxPython. The white highlight cell outline, is that from the
underlying wx.TextCtrl ? Thank You
After a doing a bit of ‘Code
Archeology’. In method wxGrid::EnableCellEditControl(bool enable)
(line 5824 grid.cpp), if enable is False (ie disable Edit Control)
the Show method of the PyGridCellEditor is called with the show
argument set to False.
If
you overwrite the Show method of PyGridCellEditor make sure you call
the Control Show() method!
···
On Monday, April 16, 2012 11:51:38 AM UTC-6, dk23 wrote:
Attached is an example that has a
masked.NumCtrl as the control for a GridCellEditor. After entering
data into the control and selecting another non NumCtrl cell it
seems to me that the control does not ‘die’ and allow the renderer to
paint the cell. If you select another NumCtrl cell then is seems to
work as expected. I have only tried on Win7 with both 2.8 and 2.9
wxPython. The white highlight cell outline, is that from the
underlying wx.TextCtrl ? Thank You