|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TreeNode with BOLD font get truncatedHi
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 Yepp, even says so in the documentation:> several times the string does not fit anymore and gets truncated. "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:
> > I noticed that if I use a bold font for 1 TreeNode of a TreeView Thank you Claes. Very helpful indeed.> > 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. (Peccato che there isn't a cleaner solution ! ) -P Show quoteHide quote > > /claes On 18 Sep 2006 14:49:49 -0700, pamelaflue***@libero.it wrote:
Show quoteHide quote >Claes Bergefall ha scritto: After setting a given node text to bold, simply setting the node text again displays> >> > 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. > >Thank you Claes. Very helpful indeed. > >(Peccato che there isn't a cleaner solution ! ) > >-P > >> >> /claes the bold text unclipped. Gene gene kelley ha scritto:
Show quoteHide quote > On 18 Sep 2006 14:49:49 -0700, pamelaflue***@libero.it wrote: Beautiful!> > >> > How can I avoid that ? > >> > >> 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 > > After setting a given node text to bold, simply setting the node text again displays > the bold text unclipped. > Thanks Show quoteHide quote > Gene
Determining Sql Column name?
(newbie-VB2005 EE) - filenames in ListBox IFormatProvider Change look of button System.Web.Mail problem No "MS .NET Framework 1.1 Wizards" How can I control positioning of child windows in an MDI form? MDI Form Position Error BC30002 XXXXX Is not defined Getting information on who is accessing a file |
|||||||||||||||||||||||