On Sunday, 19 November 2017 at 13:59:10 UTC, Mike Wey wrote:
On 18-11-17 22:57, Ivan Trombley wrote:
[...]
To change how a cell is rendered you will need to add a
CellRenderer to the column, a CellRendererText would be used
for rendering text and it has a foreground property to change
the text color.
A small example on using CellRenderers can be found here:
https://github.com/gtkd-developers/GtkD/blob/master/demos/gtkD/DemoMultiCellRenderer/DemoMultiCellRenderer.d
If the color needs to differ between the different rows you can
use TreeViewColumn.addAttribute to map a property of an
renderer to a value on the TreeModel.
If the color depends on the value of the cell
TreeViewColumn.setCellDataFunc() is also an option.
Thanks. It looks like setCellDataFunc is what I need.