Window.Paint

From Xojo Documentation

Event


Window.Paint(g as Graphics, areas() As Realbasic.Rect)

Supported for all project types and targets.

Some portion of the window needs to be redrawn either because the window is opening or it has been exposed when a window in front of it was moved or closed. This event handler receives a Graphics object as a parameter that represents the graphics that will be drawn in the window. Graphics objects have their own methods for drawing graphics.

Example

See the Canvas.Paint event about drawing in the Paint event.