Preconfiguration "Grid area cell selection"
Creates the PmgCanvas
object configured as grid.
This preconfiguration can be activated when creating a new Pmg object
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 object contains variables gridRC
Variable gridRC specifies the number of rows and columns of the grid. These values are separated by comma.
specifies the indexes of selected active position (grid row and column separated by comma). It is possible to connect it to the value of the same data structure by data binding
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:
| Object name||Name (identifier) of the Pmg object. It is used to obtain the Pmg object by the PmgObject.Items method. |
This configurator sets the initial value of the property Name.
This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.
|Number of rows of the grid|
|Number of columns of the grid|