Recent

Author Topic: TreeView + Checkbox  (Read 9557 times)

RuudB

  • New Member
  • *
  • Posts: 29
Re: TreeView + Checkbox
« Reply #15 on: December 10, 2017, 10:13:03 am »
... I am attaching a complete demo project ...
That explained things very well, thank you very much!

Kind regards/groetjs, Ruud Baltissen

GetMem

  • Hero Member
  • *****
  • Posts: 3465
Re: TreeView + Checkbox
« Reply #16 on: December 10, 2017, 10:47:56 am »
@RuudB

A lot of development has been done since 1.2.6. This is the only reason I suggested to install 1.8. However if you fine with 1.2, by all mean stay with it, 1.2 was a great release too.  You can use @wp's nice example to support checkboxes in TTreeView.

geraldholdsworth

  • Jr. Member
  • **
  • Posts: 95
Re: TreeView + Checkbox
« Reply #17 on: June 10, 2021, 05:09:56 pm »
I am attaching a complete demo project showing the TTreeView with checkbox stateimages and additional node images.

Excellent work, as always Werner.

However, I've taken this and added to it. You can now have intermediate nodes, if any of the child nodes do not match that of the parent. In addition, changing the option on a parent will drill down changing the option for the children and grandchildren (and so on). I've also added a line to deselect the node when clicked on. I'll work on how to just deselect this node while keeping the others selected (if they were).

And I've changed the graphics too - only because I didn't have the graphic for an intermediate (and its the graphics I'll be using in my project).

 

TinyPortal © 2005-2018