On 07/02/11 21.44, Brian Jones wrote:

  Hi,
sorry for the delay in answering

I have a large data set that I wanted represented on a Wx::Grid control using 
the Wx::PlGridTable as the interface between the table and the data objects.  
I've overloaded the GetAttr function for my table since I have some processing 
I needed done on the attributes based on the data.

The problem is that the GetAttr function is never called when the grid is 
painted.  As a result all of the attributes for all of the cells are simply the 
defaults (white background, writable, black foreground, text editor).

Here is a snippet of my code, have I done somthing wrong?

It is a wxPerl bug: it did not allow overriding GetAttr in a subclass (fix just committed); other missing wxGridTableBase methods are:

SetAttrProvider
GetAttrProvider
CanHaveAttributes
UpdateAttrRows
UpdateAttrCols
SetAttr
SetRowAttr
SetColAttr

I will try to fix them in a few days.

HTH,
Mattia

Reply via email to