WebCanvas.Refresh

From Xojo Documentation

Method

WebCanvas.Refresh(EraseBackground As Boolean = True)

New in 2013r1

Supported for all project types and targets.

Similar to Invalidate, but causes the WebCanvas to be redrawn immediately by calling the Paint event.

Notes

In most cases you want to use Invalidate instead as it is more efficient.

Sample Code

After recalculating a chart created using a Canvas, you can tell it to redraw itself:

RecalculateChart
ChartCanvas.Refresh