Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Any event before LinkModified (Read 2095 times)
billcch
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Nov 15th, 2007
Any event before LinkModified
Oct 28th, 2008 at 2:46am
Print Post  
Is any event I can get before LinkModified? I need to popup a dialog to let user pickup values (based on the mouseover cell) or cancel the event before LinkModified. I cannot use LinkModifying to launch my dialog, because user might drag the cursor over many of cells before the destination cell.

BTW: I am using FlowChart.Net Pro 5.1.1.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Any event before LinkModified
Reply #1 - Oct 28th, 2008 at 7:55am
Print Post  
You could 'cancel' the event by deleting the link: diagram.Links.Remove(e.Link).

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


I love YaBB 1G - SP1!

Posts: 8
Joined: Nov 15th, 2007
Re: Any event before LinkModified
Reply #2 - Oct 28th, 2008 at 3:23pm
Print Post  
Deleting the new link and recreating the original link on LinkModified, yes I am doing so. I was just wonder if there is any event I could use rather than record the original link data - delete the new link - recreate the original link.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Any event before LinkModified
Reply #3 - Oct 28th, 2008 at 4:40pm
Print Post  
Sorry, I was thinking about the Created event. You could display the dialog from the LinkModifying handler when Control.MouseButtons indicates that the left button is no longer pressed down - this means Modifying is raised for the last time, and you could set e.Cancel = true from its handler.

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


I love YaBB 1G - SP1!

Posts: 8
Joined: Nov 15th, 2007
Re: Any event before LinkModified
Reply #4 - Oct 29th, 2008 at 8:49pm
Print Post  
Cool, thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint