Window.Paint

From Xojo Documentation

Revision as of 13:42, 27 March 2014 by TTemplmann (talk | contribs) (adds areas parameter)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.