U++ framework
Do not panic. Ask here before giving up.

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: 1433
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: Wed Sep 16 23:05:19 GMT+2 2026

Total time taken to generate the page: 0.00741 seconds