Update cookies preferences
Promotic

isReset - method of the CanvasCtxExt object

Description:
Detects whether the drawing area contains graphic content from previous drawing.
Syntax:
Boolean isReset()
Return value:
true - The drawing area has been reset (erased) and it is necessary to draw everything again in the onDraw event.
false - The drawing area has not been erased after last drawing so by calling the pEvent.GetCtx(1) method in the onDraw event it is possible to draw into the are with original graphic content and add new content to it.
Note:
This method is also functional in Web panels.
Example:
JavaScriptSelect and copy to clipboard

var b = pEvent.CtxExt.isReset();

History:
Pm8.03.04: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.