Layer.onPaint

Function/Meaning
When drawing occurs
Type
Event of the Layer class
Syntax
onPaint()
Arguments
None
Description
Called immediately before the layer is actually drawn to the window.
This event is only called when the Layer.callOnPaint property is true, and Layer.callOnPaint is automatically set to false after this event finishes executing.
Reference
Layer.update