Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic deleting event is not firing (Read 1376 times)
grayhound
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Nov 8th, 2006
deleting event is not firing
Dec 29th, 2006 at 1:23am
Print Post  
when i delete a box or a arrow. the deleted event is firing, but deleting event is not firing.

what's the matter?

the code is :
1.
fc.BoxDeleting+=new MindFusion.Diagramming.WinForms.BoxConfirmation(fc_BoxDeleting);
fc.BoxDeleted+=new MindFusion.Diagramming.WinForms.BoxEvent(fc_BoxDeleted);

2.
void fc_BoxDeleted(object sender, MindFusion.Diagramming.WinForms.BoxEventArgs e)
  {MessageBox.Show("Box deleted"); }

void fc_BoxDeleting(object sender, MindFusion.Diagramming.WinForms.BoxConfirmArgs e)  {MessageBox.Show("Box deleting");  }

3.
fc.DeleteObject(flowChart1.ActiveObject);
« Last Edit: Dec 29th, 2006 at 4:08am by grayhound »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: deleting event is not firing
Reply #1 - Dec 29th, 2006 at 6:43am
Print Post  
The Deleting event lets you prevent users from deleting an object. It isn't fired when deleting programmatically.

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