Drawing on Canvas

Hello,
I have to draw graduations marks on a margin of canvas, I do this with g.DrawLine under For Next loop.
Is any another way to draw graduations marks ?

You could draw the marks into a Picture object and then draw the picture to the canvas as needed.

Hello,
This Vb6 loop draw the Logarithmic graduation mark, in right margin starting from the middle to the top right corner “70°”, and from the middle to the down right corner of the canvas “-60°”, does anyone able to help me to convert it to xojo code ?

For i = -60 To 75 Step 30 '<-- can be any step 30,15,10 for the lines
   Lat =i * Deg2Rad
   Lat = Log(Tan(Lat) + (1 / Cos(Lat)))
   Lat =Lat* Rad2deg
   PicMap.Line (PicMap.ScaleLeft, Lat)-((PicMap.ScaleLeft - 4), Lat)
   PicMap.Line (PicMap.ScaleWidth + 183, Lat)-(PicMap.ScaleWidth, Lat)
Next i