Preconfiguration "Grid area cell selection"
Creates the graphic item PmiCanvas
configured as grid.
This preconfiguration can be activated when creating a new graphic item
and is included in the group: " / Technology / Map and area"
The preconfiguration creates an active grid that can be used in order to detect/set the active position (cell).
This graphic item contains variables gridRC
Variable gridRC defines the number of grid rows and columns. These values are separated by comma.
defines the indexes of selected active position (grid row and column separated by comma). The binding
can be used to connect it to the value of the same data structure.
Variable colorRect defines the color of selected position
There are scripts in events onMousePress
that alow the control of active grid position by mouse or by keyboard arrows.
These configurators can be set before the preconfiguration is created:
|Number of grid rows|
|Number of grid columns|