Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SelectionMoving event (Read 1561 times)
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
SelectionMoving event
Aug 28th, 2012 at 4:13pm
Print Post  
Select 2 shapes, a node and a link, then move these shapes, then release left button of mouse, then SelectionMoved event is raised. In event SelectionMoving, if I set e.Cancel to true, then release left button of mouse, at this moment is there any event will be raised?

In the help ducument, there is a sentence to describe SelectionMoving event like below:
The event is raised once again when the mouse button is released.

It sounds that if I release button then the event will be raised and I am sure this is last time to raise this event. So how to know this is last time to raise SelectionMoving event?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SelectionMoving event
Reply #1 - Aug 29th, 2012 at 9:16am
Print Post  
You could check the left mouse button state:

Code
Select All
private void diagram_SelectionMoving(object sender, ValidationEventArgs e)
{
	Debug.WriteLine("selection moving");
	if ((MouseButtons & MouseButtons.Left) == 0)
		Debug.WriteLine("last time");
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint