Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How do you recognise a cancel operation? (Read 1449 times)
SavyCat
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 38
Joined: Sep 4th, 2007
How do you recognise a cancel operation?
May 16th, 2008 at 6:02pm
Print Post  
I am changing the brush of a node when it is modifying; however because the grid granularity is quite high, the on Modified event is not getting called as the node has not moved far enough. This means I cant change the brush because the onModified is not getting called...
Or for example i move the node to the bounds of the view - release - and it goes back to its original position. The onModified is not getting called. How can I get this cancel function called?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How do you recognise a cancel operation?
Reply #1 - May 19th, 2008 at 8:11am
Print Post  
We'll have to add a new event to let you do that more easily. Until it's available, you could keep a reference to the item being modified in a member variable of the form class, and restore its brush in response to DiagramView.MouseUp.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
SavyCat
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 38
Joined: Sep 4th, 2007
Re: How do you recognise a cancel operation?
Reply #2 - May 19th, 2008 at 10:37am
Print Post  
Thanks Stoyo, that would be great. Yeah I'll have to make some kind of work around.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint