Text clipped in tree node

  • Thread starter Thread starter Neil Makar
  • Start date Start date
N

Neil Makar

I have set a node in a treeview to bold, and of course, the POS has clipped
it. Does anyone know how to expand the node width so all the text will be
displayed?

I am seriously disappointed in this thing. Trees used to be fairly easy.
This TreeView thing has been lobotomized.

Neil
 
I figured out a workaround.

Set the TreeView font to Bold in the properties. As each node is created it
will be created with enough space for the bold text. Then, set the font to
regular:

NewNode.NodeFont = new Font("Microsoft Sans Serif", (float) 8.25,
System.Drawing.FontStyle.Regular);
The Node will be displayed in regular weight, but enough space will be
allocated to properly display it when you set it to bold:

NewNode.NodeFont = new Font("Microsoft Sans Serif", (float) 8.25,
System.Drawing.FontStyle.Bold);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top