From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

DesktopWindow.Paint(g as Graphics, areas() As Rect)

New in 2021r3

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.


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