Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Flowchart behaviour (Read 2638 times)
shil
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 22
Joined: Aug 9th, 2007
Flowchart behaviour
Aug 16th, 2007 at 11:56am
Print Post  
Hi there, i got 3 questions.
First question:
edit:  never mind.

secound question:
i got a zoomfunction where the user can click a button and the zoom on the flowchart will change. my problem is: if the user zoomed out the textsize will not change. the flowchart shows the text all the time in the same size, but i want that the textsize shrik also. is there some property that i can use?

  private void bZoomOut_MouseClick(object sender, MouseEventArgs e)

  {


flowChart1.ZoomOut();

  }


third question:
i allow the user to resize the distance between boxes. the user can use a trackbar to set the distance value. but if the user change the distance after he moved a box, the box will went back to the default position. that ok, but i want that the one axis position will not change.

   private void trackBar1_Scroll(object sender, EventArgs e)

  {


mBoxLevel = trackBar1.Value;



treeLayout1.LevelDistance = mBoxLevel;



treeLayout1.Arrange(flowChart1);

  }
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart behaviour
Reply #1 - Aug 16th, 2007 at 1:31pm
Print Post  
Hi,

2 >> Use fonts whose Unit is set to World. I think the only way to set the unit is from the Font constructor.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart behaviour
Reply #2 - Aug 16th, 2007 at 2:55pm
Print Post  
What do you mean by "the one axis position"?

Stoyan
  
Back to top
 
IP Logged
 
shil
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 22
Joined: Aug 9th, 2007
Re: Flowchart behaviour
Reply #3 - Aug 17th, 2007 at 11:09am
Print Post  
x and y. i want to resize only on value.
distance or level. but in the default settings the distance will chance with the level.


about the graphics.unit. is there no way else?
because i use a fontDialog and this cant return a "world" style.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart behaviour
Reply #4 - Aug 17th, 2007 at 11:49am
Print Post  
Use this method to convert from the unit returned by the font dialog to the flowchart's MeasureUnit:

http://mindfusion.org/cgi/Forum/YaBB.pl?board=fcnet_disc;action=display;num=1168...

TreeLayout always applies both the NodeDistance and LevelDistance, you cannot ignore one of the parameters. Before running the layout you could save the Y positions of all items and restore them back after running it, but keeping the X values set by the layout.

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