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 » Optional highlighting of focused node's control along with value
Optional highlighting of focused node's control along with value [message #19487] Mon, 08 December 2008 05:17 Go to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
I'd like to suggest adding another option to the TreeCtrl to allow optional highlighting of focused node's control along with value.

This is useful in situation when one wants to use RichTextCtrl with support of links as a node of TreeCtrl.

That can be useful for TreeCtrl-based widgets like OptionTree, which doesn't let you highlight selected node, I believe.

That can be done by changing one line (line 983) in TreeCtrl::Paint from
w.DrawRect(x, y, vsz.cx + 2 * m.margin, msz.cy, bg);

to
w.DrawRect(x - m.GetCtrlSize().cx, y, m.GetCtrlSize().cx + vsz.cx + 2 * m.margin, msz.cy, bg);

and adding of an appropriate flag and a set-method.



Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Clear() and external controls as nodes
Next Topic: Drag & Drop , Sort, GetValue( x )
Goto Forum:
  


Current Time: Mon Apr 29 00:27:16 CEST 2024

Total time taken to generate the page: 0.03559 seconds