Private Sub IDO1_RelationAddRequest(Status As Long)
Dim ret As Integer
ret = MsgBox("Add Relation?", vbYesNo)
If (ret = vbNo) Then
Status = 1
End If
End Sub
Private Sub Image1_Click()
InterAct1.DragAddEntity "entity1"
End Sub
Private Sub Image2_Click()
InterAct1.DragAddEntity "entity2"
End Sub
Private Sub Image3_Click()
InterAct1.DragAddRelation "link1"
End Sub
Private Sub Image4_Click()
InterAct1.DragAddRelation "link2"
End Sub
Private Sub InterAct1_EntityAddRequest(ID As Long, Name As String, ClassName As String, Text As String, Top As Integer, Bottom As Integer, Left As Integer, Right As Integer, Status As Long)
Rem show a modal form
Form2.Show 1
Text = Form2.Text.Text
End Sub
Private Sub InterAct1_RelationAddRequest(ID As Long, Name As String, ClassName As String, Text As String, ByVal SourceEntity As Object, ByVal DestinationEntity As Object, Status As Long)
Dim ret As Integer
ret = MsgBox("Are your sure you want to add this relation?", vbYesNo)