BeforeMirror example
Example for BeforeMirror event
Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
CAvax1.Command = Avax.AvaxCommand.Select_All_c
CAvax1.Command = Avax.AvaxCommand.Mirror_c
End Sub
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
cAvax1.StartAvax()
Call cAvax1.Add_Line(0, 0, 0, 12, 0, 0)
Call cAvax1.Add_Line(1, 1, 0, 12, 0, 0)
End Sub
Private Sub Form1_FormClosed(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
cAvax1.EndAvax()
End Sub
Private Sub cAvax1_BeforeMirror(ByVal Sender As Object, ByVal e As Avax.cAvax.BeforeMirrorEventArgs) Handles CAvax1.BeforeMirror
If MsgBox("Do you want to mirror copy the objects", MsgBoxStyle.Question Or MsgBoxStyle.YesNo, "Event BeforeCopy") = MsgBoxResult.No Then
e.fCancel = True
End If
End Sub