Column configuration with wxDataViewItemAttr?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Column configuration with wxDataViewItemAttr?

Marc Schanne
Hej everybody,

I try to configure font or even colour for a column in my wxDataViewCtrl on a Windows platform.

Perhaps you can help me with this code:

wxDataViewItemAttr font_attr = wxDataViewItemAttr();
font_attr.SetBold(true);
font_attr.SetColour(wxColour(255,0,0));
text_renderer->SetAttr(font_attr);
column = new wxDataViewColumn(database_handle->GetColumnName((int) col_index), text_renderer, col, column_width);

Thanx for any help advance!  Marc
Loading...