Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Images In Tree (Read 3152 times)
Ganesh Muthuvelu
Guest


Images In Tree
Feb 17th, 2006 at 4:42pm
Print Post  
Hi,
Please see this link,

http://66.7.11.107/ganesh/folder.gif

Why am I seeing the first letter of the folders in the images of the tree?. What should I do in order to just have the images and no text on it?.

Thanks,
Ganesh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Images In Tree
Reply #1 - Feb 17th, 2006 at 6:19pm
Print Post  
Hi,

Probably the Text property is set both for the folder and label boxes. Set folderBox.Text = "" to hide the text there.

Stoyan
  
Back to top
 
IP Logged
 
Ganesh Muthuvelu
Guest


Re: Images In Tree
Reply #2 - Feb 17th, 2006 at 9:47pm
Print Post  
Hi Stoyan,
The quality of images drawn in the tree layout does not reflect the actual quality of the image; in fact the images drawn is not of good quality.

Same is true with Shapes. When I draw a box (ellipsis), the lines are not uniform and appear broken..

Is it how it works or am I missing something here.

Thanks.
Ganesh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Images In Tree
Reply #3 - Feb 19th, 2006 at 7:56am
Print Post  
Hi Ganesh,

Enable the AntiAlias property to improve the appearance of lines. By default images are stretched to fill the bounds of boxes - try setting the value of the box.PicturePos property to Center ot TopLeft.

Stoyan
  
Back to top
 
IP Logged
 
Ganesh Muthuvelu
Guest


Re: Images In Tree
Reply #4 - Feb 20th, 2006 at 12:04pm
Print Post  
How to make the box text NOT wrap and also make the box width dynamic to suit the text length?. Basically, I want the box width to be dynamic based on the text length.

Thanks,
Ganesh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Images In Tree
Reply #5 - Feb 20th, 2006 at 1:10pm
Print Post  
Use this code after the label box is created:

  Graphics mg = fc.CreateGraphics();
  mg.PageUnit = fc.MeasureUnit;
  SizeF size = mg.MeasureString(label.Text, label.Font);
  label.Resize(size.Width + 2, label.BoundingRect.Height);
  mg.Dispose();
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint