Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Use of Overview (Read 1797 times)
mozzis
YaBB Newbies
*
Offline



Posts: 3
Joined: Apr 9th, 2007
Use of Overview
Jul 6th, 2007 at 9:39pm
Print Post  
Can you suggest a method to identify which node in the chart was clicked in the overview? I want to quickly jump to a node in a large chart by clicking on its image in the overview; then I will highlight the node or scroll it into view.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Use of Overview
Reply #1 - Jul 9th, 2007 at 5:44am
Print Post  
There is a ScreenToDoc method you could use:

- handle MouseDown
- call ScreenToDoc to get the document coordinates of the mouse position
- call GetBoxAt to find the box at that position

Unfortunately ScreenToDoc is internal, so at this time you can invoke it only through the .NET Reflection API. We will make it public in the next release.

Stoyan
  
Back to top
 
IP Logged
 
mozzis
YaBB Newbies
*
Offline



Posts: 3
Joined: Apr 9th, 2007
Re: Use of Overview
Reply #2 - Jul 9th, 2007 at 3:32pm
Print Post  
Thank you. This worked as needed. I changed the visibility in the source code for now.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint