Below is the code:
Private Sub ChangeCircle()
Dim XCenter, Ycenter, Xrad, Yrad As Single
Dim LineHandle As Long
Dim dx As Single
Dim dy As Single
Dim h() As Long, iType() As AvaxItemType
Dim sLayerNames() As String, iLayerStatus() As Integer, sLineStyleNames() As String
Dim vProp() As Variant, vData() As Variant
Dim xyz() As Single
ReDim h(1) As Long
Dim sKey As String
Call frmMain.cAvax1.GetLayers(sLayerNames(), iLayerStatus())
Call frmMain.cAvax1.GetLineStyleNames(sLineStyleNames())
ReDim h(1)
h(1) = txtHandle.Text 'LastSelectedHandle
If frmMain.cAvax1.GetProperties(h(), iType(), vProp(), vData()) = True Then
sKey = frmMain.cAvax1.GetHandleKey(h(1))
If iType(1) = Ellipse_i Then
XCenter = txtCircle(0).Text
Ycenter = txtCircle(1).Text
Xrad = txtCircle(2).Text
xyz() = vData(1)
xyz(1) = XCenter - Xrad 'x1
xyz(2) = Ycenter - Xrad 'y1
xyz(4) = Val(XCenter) + Val(Xrad) 'x2
xyz(5) = Val(Ycenter) + Val(Xrad) 'y2
arrPanes(1).txtHandle = ""
vData(1) = xyz()
Call frmMain.cAvax1.SetProperties(h(), iType(), vProp(), vData())
End If
End If
End Sub
Sign In
Register
Help
Add Reply


MultiQuote