Add_Rectangle example
Example for Add_Rectangle method
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
cAvax1.StartAvax()
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 Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
Dim x0 As Single
Dim y0 As Single
Dim nWidth As Single
Dim nHeight As Single
Dim vItemProperties As Object
Dim iClr As Short
Dim iWidth As Short
Dim iStyle As Short
Dim iLayer As Short
Dim AvaxHandle As Integer
'Define the starting point of the Rectangle
x0 = 3 : y0 = 3
'Define the Drawing Color and the Drawing Width
iClr = 6 : iWidth = 2
' Finally, define thse lengths of the sides
nWidth = 8 : nHeight = 4
AvaxHandle = cAvax1.Add_Rectangle(x0, y0, nWidth, nHeight, vItemProperties, iClr, iWidth, iStyle, iLayer)
End Sub