WebCanvas.Paint
From Xojo Documentation
Event
The area needs to be redrawn, such as when it has been resized.
Sample Code
This code draws a red rectangle in the Canvas:
g.ForeColor = &cff0000
g.FillRect(0, 0, 100, 100)
g.FillRect(0, 0, 100, 100)