Gauges
Hi
Until there are controls in the shape of gauges, I used poligons (Erel's suggestion) as demonstrated here:
.....
triangle(track,40)
Form5.FPolygon(alX,0,alY,0,4,Rgb(TRK.R,TRK.G,TRK.B),f)
Form5.FPolygon(alX,0,alY,0,4,cBlack)
....
Sub Triangle(angle,k)
angle = angle * cPI / 180
s = Sin(angle)
c = Cos(angle)
alX.Item(0) = center_x + k * s
alY.Item(0) = center_y - k * c
alX.Item(1) = center_x + 6 * c + 7 *s
alY.Item(1) = center_y - 7 * c + 6 * s
alX.Item(2) = center_x + 10 * s
alY.Item(2) = center_y - 10 * c
alX.Item(3) = center_x - 6 * c + 7 * s
alY.Item(3) = center_y - 7 * c - 6 * s
End Sub
.....
and it is drawn on the background of an image of a map, so an image of the instrument is the same.