Preconfiguration "Horizontal tabs"
Creates the graphic item PmiCanvas
configured as switching tab.
This preconfiguration can be activated when creating a new graphic item
and is included in the group: " / Selection from menu, ComboBox, RadioButton / Support for panels"
This graphic item has variables Titles
of the string
type. The individual values are separated by semicolons. The Titles
variable contains descriptions of the tab titles and also indicates the number of tabs. The Widths
variable defines the width of each tab. The Index
sets the active tab.
In the onMousePress
event there is a script that manages the switching of tabs. It also allows to define an action that is executed when the tab is switched.
In the start of onDraw
, there are variables that can be used for setting up the color appearance of tabs, font size and color and margin widths.
These configurators can be set before the preconfiguration is created:
|Tab titles||Tab titles separated by semicolons|
|Defined tab widths||Defined tab widths separated by semicolons|
Over the displayed area (default)
Under the displayed area