Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Canvas - page of object PmgCanvas

Description:
Properties of the PmgCanvas object.
Configuration items:
In onDraw the pEvent.GetParentVar() method will be usedIf checked, then enables access from drawing event onDraw to the variables of the parent Pmg object by the pEvent.GetParentVar() method. Also provides calling of the drawing function when some of the parent Pmg object variables is changed.

Can be enabled only if the parent object is also of the PmgCanvas type.

 
The concept of foreground/background:

If the animated 2D content is complex, large and some portion of it is changing rapidly, then the CPU load could be quite high. The possible solution of such situation is to divide the complex PmgCanvas object up into two overlaping PmgCanvas objects. One portion being static complex background and the second part being dynamic simple foreground. The Pmg object representing the dynamic foreground is embedded in the static background, constituting one compound Pmg object. This is the standard solution used for creating most of the preconfigured PmgCanvas objects.

The embedded Pmg object (foreground) can access Vars variables of the parent object (background). If the Vars variables of the object item (background) are modified, the refresh of embedded object (foreground) is provided.

Buttons on the right side of the configuration window of each Pmg object:
See also:
- The onDraw event

History:
Pm8.02.06: Created
PROMOTIC 9.0.8 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice