Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Cancel Events and Programmatically Trigger Event (Read 1538 times)
sydneyos
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Mar 7th, 2009
Cancel Events and Programmatically Trigger Event
Mar 28th, 2009 at 12:03am
Print Post  
I need a way to cancel a change of focus event, but the LinkDeselected event doesn't seem to have a Cancel option. 

Also, can I programmatically cause a click or double-click event?  If not, is there a way for me to programmatically put a link in InplaceEdit mode?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cancel Events and Programmatically Trigger Eve
Reply #1 - Mar 29th, 2009 at 9:50am
Print Post  
You could set e .Cancel = true from both LinkSelecting and NodeSelecting if the link you need to prevent being deselected is currently selected. Another option could be to select it again from the SelectionChanged event. Call Diagram.BeginEdit(link) to put the link in edit mode.

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