Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram events (Read 1437 times)
kc13
YaBB Newbies
*
Offline



Posts: 29
Joined: Jan 19th, 2009
Diagram events
Jan 19th, 2009 at 10:30pm
Print Post  
We are creating a diagram at runtime:

Dim WithEvents diagram As New MindFusion.Diagramming.Wpf.Diagram

... Some events seem to fire and others do not.

This works:
    Private Sub diagram_NodeSelected(ByVal sender As Object, ByVal e As MindFusion.Diagramming.Wpf.NodeEventArgs) Handles diagram.NodeSelected

This does not:
    Private Sub diagram_NodeDeleting(ByVal sender As Object, ByVal e As MindFusion.Diagramming.Wpf.NodeValidationEventArgs) Handles diagram.NodeDeleting

Drag/Drop events also don't seem to fire. 
    Private Sub diagram_Drop(ByVal sender As Object, ByVal e As System.Windows.DragEventArgs) Handles diagram.Drop

But the objects within the diagram do move around as we drag them.

Any idea what we are doing wrong?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram events
Reply #1 - Jan 20th, 2009 at 9:40am
Print Post  
The keyboard focus must be on the Diagram control for Del to delete a node and raise NodeDeleting.

Drop is inherited from the base Control class and is raised for OLE drag-and-drop events. When a diagram element is moved, the control raises NodeModified or LinkModified.

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