ScaleItems example
Example for ScaleItems method
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, 10, 10, 0)
Call cAvax1.Add_Line(0, 10, 0, 10, 10, 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 Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
Dim [Handles]() As Integer
Dim sclx1 As Single
Dim scly1 As Single
Dim sclx2 As Single
Dim scly2 As Single
Dim fScaleStay As Boolean
Dim Answer As Boolean
If CAvax1.GetAllHandlesArr([Handles]) > 0 Then
sclx1 = 0
scly1 = 0
sclx2 = 1.5
scly2 = 1.5
fScaleStay = True
Answer = CAvax1.ScaleItems([Handles], sclx1, scly1, sclx2, scly2, fScaleStay)
End If
End Sub