DesktopWindow.Paint
From Xojo Documentation
Event
DesktopWindow.Paint(g as Graphics, areas() As Rect)
New in 2021r3
Supported for all project types and targets.
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.
Example
See the DesktopCanvas.Paint event about drawing in the Paint event.