Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic BoxCreated/BoxCreating (Read 2118 times)
Andy Sarosy
Guest


BoxCreated/BoxCreating
Jan 16th, 2006 at 3:37pm
Print Post  
I've just downloaded the demo and am looking at the FlowCharter sample (nice job on the samples btw).   Niether the BoxCreated or BoxCreating events seem to be firing.

Sample Code in the MainForm.VB:

Private Sub _flowChart_BoxCreating(ByVal sender As Object, ByVal e As MindFusion.FlowChartX.BoxConfirmArgs) Handles _flowChart.BoxCreating
       MsgBox("Creating")
End Sub


Version from FCDemo.Net.EXE is 1.0.2195.20319
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: BoxCreated/BoxCreating
Reply #1 - Jan 16th, 2006 at 4:27pm
Print Post  
Hi,

BoxCreated and BoxCreating are raised only when a user draws a box, but not when a box is created programmatically. The Flowcharter uses the CreateBox method to create boxes in response to drag-and-drop events, so there isn't a BoxCreated event raised.

If you need the same code to execute both when users create items and when the application creates them, you would have to add a call to the event handler method after each CreateBox.

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