Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Two flowchart view questions (Read 1166 times)
gamesmeister
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 2nd, 2006
Two flowchart view questions
Oct 24th, 2006 at 5:26pm
Print Post  
1) Is it possible for me to identify the area of the flowchart that is currently in view(i.e. a rectangleF object with the coordinates of the viewed area)?

2) How do I change the viewed area so I move to the actual top left of the flowchart ?

(I'm currently calling FitDocToObjects, which alters the display around the objects, but I also want to be able to display the actual top left position of the flowchart).

Thanks
Gerry
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Two flowchart view questions
Reply #1 - Oct 25th, 2006 at 5:20am
Print Post  
Quote:
1) Is it possible for me to identify the area of the flowchart that is currently in view(i.e. a rectangleF object with the coordinates of the viewed area)?


Yes, call fc.ClientToDoc(fc.ClientRectangle) to get the logical coordinates of the currently viewed area.

Quote:
2) How do I change the viewed area so I move to the actual top left of the flowchart ?


Set fc.ScrollX and fc.ScrollY to fc.DocExtents.X/Y.

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