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 » [solved] Can we get the private members of TreeCtrl made protected?
Re: Can we get the private members of TreeCtrl made protected? [message #44758 is a reply to message #44756] Wed, 17 June 2015 11:10 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Sure!

index.php?t=getfile&id=4796&private=0


I created a custom TreeCtrl. Normally, the tree control is designed for a single root kind of structure. Even when not displaying the root node, there is still a line pointing upwards and it looks like a tree.

My change is about making it behave like a list of trees. Each entry in that list is a root of a tree, but they do not have a parent. I also changed the way lines are displayed for children nodes, enhanced IMHO for minor aesthetics.

In my particular case, I use this tree control to display folders from a classpath. That's why some folders are amrked with an "x", to show that they are invalid.

I implemented this only changing a few lines in the TreeCtrl::Paint override.

If you wish, I can give you the exact members than need to be made protected.
  • Attachment: tree.png
    (Size: 2.45KB, Downloaded 612 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Node id calculation after removal ?
Next Topic: Manually set option in OptionTree
Goto Forum:
  


Current Time: Sat May 18 23:58:49 CEST 2024

Total time taken to generate the page: 0.02232 seconds