Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ScrollTo center box (Read 1822 times)
asloan
YaBB Newbies
*
Offline



Posts: 35
Joined: Mar 6th, 2006
ScrollTo center box
Sep 4th, 2007 at 3:32pm
Print Post  
I am working on a search function that will allow a user to search a diagram for a box containing text that they specify.

Once the box is found, I want to center that box in the FCX control.  What is the best way to go about that?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ScrollTo center box
Reply #1 - Sep 4th, 2007 at 3:53pm
Print Post  
BringIntoView should center the specified box in the control, as long as it's not visible in the current view. So you might try to scroll far from the box to make sure it's not visible, and then call BringIntoView to center on it.

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