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 specifies the number of grid rows and columns. These values are separated by comma.
specifies 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 specifies 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|