From Xojo Documentation

Revision as of 13:27, 4 March 2010 by SteffX (talk) (SMBot: new page by automated transformation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Canvas.Paint(g as Graphics)

Supported for all project types and targets.

The area needs to be redrawn, such as when it has been covered by another window and then uncovered.

The parameter passed gives you access to the Graphics class methods for drawing. Use the Paint event, rather than the Open event if you want objects drawn with the Graphics class methods to be persistent. On Windows only, the EraseBackground property determines whether REAL Studio should erase the entire Canvas when repainting.