Canvas.graphics

I found an old project and I don’t know how to handle it:
Here’s the code
canvas1.graphics.ForeColor=&c009900
canvas1.graphics.FillOval(608,0,20,20)
canvas1.graphics.FillOval(0,26,20,20)
canvas1.graphics.Filloval(970,26,20,20)
canvas1.graphics.FillOval(349,51,20,20)
canvas1.graphics.FillOval(760,76,20,20)
canvas1.graphics.FillOval(157,100,20,20)
canvas1.graphics.FillOval(608,127,20,20)

Add the Paint-Event to Canvas1, add your lines within this Event and then modify the lines to this:

g.DrawingColor = &c009900
g.FillOval(608,0,20,20)
g.FillOval(0,26,20,20)
g.Filloval(970,26,20,20)
g.FillOval(349,51,20,20)
g.FillOval(760,76,20,20)
g.FillOval(157,100,20,20)
g.FillOval(608,127,20,20)

This blog post might help: