|In onDraw the pEvent.GetParentVar() method will be used||If checked, then enables access from drawing event onDraw to the variables of the parent graphic item by using the pEvent.GetParentVar() method. Also provides calling of the drawing function when some of the parent graphic item variables is changed. |
Can be enabled only if the parent item is also of the PmiCanvas type.
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 PmiCanvas item up into two overlaping PmiCanvas items. One portion being static complex background and the second part being dynamic simple foreground. The graphic item representing the dynamic foreground is embedded in the static background, constituting one compound graphic item. This is the standard solution used for creating most of the preconfigured PmiCanvas items.
The embedded item (foreground) can access Vars variables of the parent item (background). If the Vars variables of the parent item (background) are modified, the refresh of embedded item (background) is provided.