Sign up

Editable treeview cell with CellRendererToggle

Hi,

does anybody please have a working example how to implement an editable checkbox cell (with CellRendererToggle) in a treeview?

Thanks in advance,
Timo

Re: Editable treeview cell with CellRendererToggle

On 13-08-18 00:59, Timo Gransch wrote:

Hi,

does anybody please have a working example how to implement an editable checkbox cell (with CellRendererToggle) in a treeview?

Thanks in advance,
Timo

You can find a small example here:
https://github.com/gtkd-developers/GtkD/blob/master/demos/gtkD/DemoMultiCellRenderer/DemoMultiCellRenderer.d

For the editable checkbox lines 113-116 and 125-129 would be the line to
look at for the editable checkbox.

Re: Editable treeview cell with CellRendererToggle

On Mon, 13 Aug 2018 19:07:14 +0200, Mike Wey wrote:

For the editable checkbox lines 113-116 and 125-129 would be the
line to look at for the editable checkbox.

Hi Mike,

sorry for late reply and thanks a lot. I had to comment out line 85 and 86 for the example to compile, for setValue did not accept RGBA and Color as a third parameter, but now it works.

Best regards,
Timo