473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Bold NodeFont causes text to appear truncated

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?

--

Dennis
Jun 27 '08 #1
2 2731
On Jun 5, 12:02 am, Dennis <nob...@nowhere.comwrote:
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?

--

Dennis
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
Jun 27 '08 #2
On Thu, 5 Jun 2008 01:21:28 -0700 (PDT), kimiraikkonen
<ki*************@gmail.comwrote:
>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,

--

Dennis
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Devhead | last post by:
I changed the treeview node text to bold and changed color "successfully". However, the node text was truncated and when i did a tree refresh the node formatting was gone. What do i need to do to...
1
by: Steve Shanks | last post by:
Hi Al Is there away to show specific treeview nodes in BOLD when building the treeview up in code Thank Steve
1
by: Robin Tucker | last post by:
No matter what I try, I cannot get my tree nodes (in my TreeView) to display in bold. I have a "filter" system, whereby I should highlight items in the tree that have passed the filter. To do...
2
by: Kejpa | last post by:
Hi, I'm experiencing problems with showing bold text in a treeview. The text gets cut and the last character isn't fully visible. It seems like the width of the text is based on the non-bold size...
11
by: Mano | last post by:
When settiing a TreeNode to bold the text label of that node is clipped. As describedin in the Bug Rebort FDBK16963 I set the underliying TreeView Fond to be bold. Now I have the strange...
9
by: Jason | last post by:
If I've got Me.RichTextBox1.Text = "In Ricn Tex Box" Me.RichTextBox1.Text &= "Line two" & vbCrLf How do I make the first line appear BOLD?
4
by: pamelafluente | last post by:
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 ...
2
by: Ben | last post by:
Hi I am having problems making a single node's Font Bold. objUserTree.Nodes.Item(i) I am looping though the items but with every property I try it fails. Thanks
4
by: Xenomorph | last post by:
I have a program where you click an item on the TreeView on the left, and then work with whatever pops up on the right. There are many entries on the TreeView, and when you click something on the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.