Home » U++ Library support » TreeCtrl » How to add a structure to tree node
How to add a structure to tree node [message #46021] |
Fri, 19 February 2016 15:41  |
WebChaot
Messages: 53 Registered: September 2006 Location: Austria, Vienna
|
Member |
|
|
Hello!
I tried to add a structure to each node of TreeCtrl.
I used examples to find out how - and it works so far. I can set and get structure (RawToValue and back) - but unfortunately the Label is not longer drawn on each node in Tree. I implemented ToString() and ~ to my struct, but does not work.
And the second question is: When I solved first problem - is it possible to use AttrText - even when value is a struct and only one part of it represents the node label?
Or maybe for both questions: Will I need to add a display for this special case (where I split my struct and also set my AttrText properties)?
Thanks a lot!
WebChaot
|
|
|
Goto Forum:
Current Time: Fri Apr 25 21:27:00 CEST 2025
Total time taken to generate the page: 0.00868 seconds
|