Promotic

Preconfiguration "Tabs for switching the panels in the frame"

Creates compound object PmgBox with PmgCanvas and PmgFrame subobjects configured as switching tabs.

This preconfiguration can be activated when creating a new Pmg object and is included in the group: "/ Frame panel (PmgFrame)".

The PmgCanvas object contains variables Titles and Widths of the String type. The individual vaues are separated by semicolon.
The Titles variable contains descriptions of the tab titles and also indicates the number of pages.
The Widths variable specifies the width of each tab.
The Index variable sets the active tab.


In the onMousePress event there is a script that provides the switching of tabs. It also allows to define an action that is executed when the page is switched. For the first two tabs, the CreateView method is preconfigured in order to open Web pages in the PmgFrame object.

In the start of the onDraw event, 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:
Object nameName (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 Name property.
The maximum name length is 30 characters. 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.
Tab titlesTab titles separated by semicolon
Defined tab widthsDefined tab widths separated by semicolon

History:
Pm8.03.00: Created
PROMOTIC 9.0.22 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.