Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic auto placed nodes out of visible area (Read 2122 times)
CevatKelle
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Oct 3rd, 2007
auto placed nodes out of visible area
Oct 5th, 2007 at 1:22pm
Print Post  
i insert many items which are being placed automaticly in a layerlayout

but if i have many items some of them are out side the viewable area?  (if i drag them outside then the canvas expands but not when i put them by code)

and i have another problem when i zoom out, the texts dont fit the nodes they dont also resize to smaller sizes. is there an option to achive that?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: auto placed nodes out of visible area
Reply #1 - Oct 5th, 2007 at 2:45pm
Print Post  
Hi,

After adding items by code, call the Diagram.ResizeToFitItems method.

Use the Font (name, size, GraphicsUnit.World) constructor to create fonts the scale when zooming out.

Stoyan
  
Back to top
 
IP Logged
 
CevatKelle
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Oct 3rd, 2007
Re: auto placed nodes out of visible area
Reply #2 - Oct 5th, 2007 at 4:20pm
Print Post  
should i place the font to fc or box? i tried both but didnt work.

and i couldnt find ResizeToFitItems even in object browser. am i doing something wrong? or using an older version?
  
Back to top
 
IP Logged
 
CevatKelle
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Oct 3rd, 2007
Re: auto placed nodes out of visible area
Reply #3 - Oct 5th, 2007 at 4:43pm
Print Post  
     fc.FitDocToObjects(); also dont work
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: auto placed nodes out of visible area
Reply #4 - Oct 6th, 2007 at 9:39am
Print Post  
Probably you are using version 4.3, the latest is version 5. You must call FitDocToObjects after applying the layout.

Assign the font to the boxes. You might select a box in one of the FCDemo samples and take a look at its font attributes in the property grid. As you can see, the fonts scale ok there.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint