Bold NodeFont causes text to appear truncated

D

Dennis

I am using VS 2005. I have a form with a TreeView. I want to change the
font of the root node to bold. But when I do, running the program causes
the text in that node to appear truncated ... as if the node doesn't
have the room for the bolded text to entirely fit. Is there something I
need to do to the node to adjust its width?
 
K

kimiraikkonen

I am using VS 2005. I have a form with a TreeView. I want to change the
font of the root node to bold. But when I do, running the program causes
the text in that node to appear truncated ... as if the node doesn't
have the room for the bolded text to entirely fit. Is there something I
need to do to the node to adjust its width?

Hi,
Not sure what you mean, but when i change font size to higher and even
to bold style, if treeview's width / height is wide enough there
shouldn't be any missing parts on display of text. But when i change a
single node's font style to font,yes it gets truncated

Maybe your problem is setting font style for each node via NodeFont
property seperately. Try to click on TreeView and set whole TreeView's
font style instead of setting for each node from properties window.
Then all nodes get fit.

Thanks,

Onur Güzel
 
D

Dennis

Maybe your problem is setting font style for each node via NodeFont
property seperately.

Yes. I was setting just the single root node to bold.

Thanks for the clue. I can set the TreeView's font to bold, then set all
non-root fonts to normal. This approach seems to work.

Thanks,
 

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

Top