Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
WebChaot is currently offline  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
 
Read Message
Read Message
Previous Topic: Manually set option in OptionTree
Next Topic: TreeCtrl display bug
Goto Forum:
  


Current Time: Thu Mar 28 10:56:42 CET 2024

Total time taken to generate the page: 0.01075 seconds