TreeNode with BOLD font get truncated

  • Thread starter Thread starter pamelafluente
  • Start date Start date
P

pamelafluente

Hi

I noticed that if I use a bold font for 1 TreeNode of a TreeView
several times the string does not fit anymore and gets truncated.

How can I avoid that ?

Any suggestionis appreciated

-P
 
I noticed that if I use a bold font for 1 TreeNode of a TreeView
several times the string does not fit anymore and gets truncated.

Yepp, even says so in the documentation:
"If the node font is larger than the Font property value set in the TreeView
control, the tree node label text is clipped"
(larger in this case means "takes more physical room to display", it's not
related to the font size)
How can I avoid that ?

Make the font for the entire TreeView bold and then unbold the items that
you don't want bold.

/claes
 
Claes Bergefall ha scritto:
Yepp, even says so in the documentation:
"If the node font is larger than the Font property value set in the TreeView
control, the tree node label text is clipped"
(larger in this case means "takes more physical room to display", it's not
related to the font size)


Make the font for the entire TreeView bold and then unbold the items that
you don't want bold.

Thank you Claes. Very helpful indeed.

(Peccato che there isn't a cleaner solution ! )

-P
 
Claes Bergefall ha scritto:


Thank you Claes. Very helpful indeed.

(Peccato che there isn't a cleaner solution ! )

-P

After setting a given node text to bold, simply setting the node text again displays
the bold text unclipped.

Gene
 
gene kelley ha scritto:
After setting a given node text to bold, simply setting the node text again displays
the bold text unclipped.

Beautiful!

Thanks

Gene
 
Back
Top