Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Overview Question (Read 2540 times)
just2click
YaBB Newbies
*
Offline


Go Sharks Go

Posts: 16
Joined: Oct 11th, 2006
Overview Question
Oct 31st, 2006 at 8:45am
Print Post  
Hi again folks,

I'm trying to figure out how to better use the overview control.

My problem is this, when the user expands a node sometimes the full graph layout exceeds the actual graph display. Once this happens I'd like to move the overview box so that the expanded box would be in the middle of the overview.

I'm not sure how to obtain the current overview location so I can test if the current box is visible within the overview box or not.

Any ideas?

Thanks,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview Question
Reply #1 - Oct 31st, 2006 at 9:27am
Print Post  
Hi Dror,

At this time there isn't any programmatic control provided over the Overview viewport position. We can implement an Overview.BringIntoView method (similar to the flowchart's one) in the next version.

Stoyan
  
Back to top
 
IP Logged
 
just2click
YaBB Newbies
*
Offline


Go Sharks Go

Posts: 16
Joined: Oct 11th, 2006
Re: Overview Question
Reply #2 - Oct 31st, 2006 at 9:42am
Print Post  
Thanks Stoyo.

What I did up until now is play around with the FC ScrollX and ScrollY properties.
I'd like to create the effect of centrlizing the view around the box that was expnded (for example).
I see that the overview control moves accordingly.

Is there a way I can manipulate the Scroll properties? I have a problem calculating the actual position of boxes that are out of view.

Thanks again,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview Question
Reply #3 - Oct 31st, 2006 at 11:40am
Print Post  
At this time there isn't any method available to let you change the overview scroll position.

Assuming everything is measured in pixels, you can set the flowchart's ScrollX = (box.Left + box.Right - flowChart.Width) / 2, and similar for Y, to center the flowchart's view on a box. However, I am not sure if the overview will automatically follow the flowchart.

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