Hi All,
My app draws two lines (shaded rectangles) to represent two Airport Runways exactly to the angles that the user entered.
I just need to place the runway markers at each end to represent the angle each runway is pointing to.
I start off with drawing a shaded long and thin rectangle and their respective angles are configured through the app (so each long/thin rectangle is rotated)
My problem now is knowing how to place text markers at each end and preferably rotate and align the text runway markers along the axis of their respective runway.
Can anyone give me an idea of how to locate the ends of each runway?
My app draws two lines (shaded rectangles) to represent two Airport Runways exactly to the angles that the user entered.
I just need to place the runway markers at each end to represent the angle each runway is pointing to.
I start off with drawing a shaded long and thin rectangle and their respective angles are configured through the app (so each long/thin rectangle is rotated)
My problem now is knowing how to place text markers at each end and preferably rotate and align the text runway markers along the axis of their respective runway.
Can anyone give me an idea of how to locate the ends of each runway?
part of drawing the runways:
'setup canvas for the visualise runway/wind
Dim cvs As Canvas
cvs.Initialize(pnlVisualise)
Dim rwy1 As Rect
Dim rwy2 As Rect
Dim rwy1Angle, rwy2Angle As Int
rwy1Angle = common.Val(lblRWY1L.Text) * 10
rwy2Angle = common.Val(lblRWY2L.Text) * 10
rwy1.Initialize(200dip,100dip,220dip,350dip)
cvs.DrawRectRotated(rwy1,Colors.Gray,True,5,rwy1Angle)
rwy2.Initialize(200dip,100dip,220dip,350dip)
cvs.DrawRectRotated(rwy2,Colors.DarkGray,True,5,rwy2Angle)
Activity.Invalidate
End Sub