Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Change the behavior of the overview (Read 1047 times)
yrauma
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 61
Joined: Mar 28th, 2010
Change the behavior of the overview
Aug 9th, 2010 at 11:52pm
Print Post  
Hello Stoyan,

I would like to modify the behavior of the overview object.

Currently, we used it to navigate in the diagram and it works fine.
The rectangle in the overview that represents the part of the diagram that the user can see is the part I would like to change.

In the best case I would love to be able to draw this rectangle, the same way as a selection rectangle. the user clic, hold + drag and draw the selection rectangle which will then, after a mouse release, update the diagramView.

But as the Viewport property of the overview is internal, I cannot override it in any way in an extended class...

So im kinda out of idea.

Is it possible ? can you help me ?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Change the behavior of the overview
Reply #1 - Aug 10th, 2010 at 8:32am
Print Post  
Hi Amaury,

You could do that by directly setting the DiagramView's scroll and zoom values upon MouseUp. Rendering the selection rectangle can be done from an OnPaint override,  but while drawing with the mouse you will see both the standard tracker rectangle and the currently drawn rectangle. We'll try to add an easier way to override this for the next release.

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