Canvas

Xojo provides a Canvas control for desktop, mobile and web projects:

Common members

These events, methods and properties are both common amongst the desktop, mobile and web versions of the control and are the most commonly used. See the individual controls for more members and details.

Events

Name

Description

Paint

The Canvas control is being redrawn either because the OS requires it or your code called the Refresh method.

Methods

Name

Description

Refresh

Forces the Canvas to redraw which fires the Paint event.

Scroll

Scrolls the area forcing the Paint event to fire. Scroll is currently supported for desktop projects only.

Properties

Name

Description

Backdrop

The image that should be drawn. If you are displaying an image rather than drawing one via code, this will be faster than using the Paint event. Backdrop is currently supported for desktop projects only.