Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to scroll the selected Node to center? (Read 2105 times)
Erison
YaBB Newbies
*
Offline



Posts: 2
Location: Taiwan, ROC
Joined: Jan 18th, 2006
How to scroll the selected Node to center?
Feb 21st, 2006 at 7:18am
Print Post  
Hi,

I'd like to scroll the selected Node to center of flowchart. But I don't know how to do it? Could you please help me?

- Erison
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to scroll the selected Node to center?
Reply #1 - Feb 21st, 2006 at 8:37am
Print Post  
Hi,

BringIntoView centers the object into view if it isn't already visible.

You could also use fc.ClientToDoc(fc.ClientRectangle) to find out how big the flowchart's visible area is, subtract half of that from the node location and assign the result to ScrollX and ScrollY.

I hope that helps,
Stoyan

P.S. A developer is now working on the extended table export to Visio that you need; it should be ready in 3-4 days.
  
Back to top
 
IP Logged
 
Erison Liang
Guest


Re: How to scroll the selected Node to center?
Reply #2 - Feb 21st, 2006 at 10:54am
Print Post  
Hi,

Thanks for your pretty useful information.

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