Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfigurations 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, posRC and colorRect.
Variable gridRC defines the number of grid rows and columns. These values are separated by comma.
Variable posRC 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 and 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:
Grid rows numberGrid rows number
Grid columns numberGrid columns number
Grid colorGrid color
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice