Preconfiguration "Button two-state rounded"

Creates object configured as two-state button.
The created PmgCanvas object contains variables title0, title1, mode, push and state. Variable title0 and title0 are used for text displayed on the button in the state 0 or 1. Variable mode and push define its design. the state variable defines the current state 0 or 1.
The events onKeyPress and onMousePress are solving the conditions that are defined for calling the designer's "onPressUp" method.
Designer's method onPressUp on the "Methods" tab of the Pmg object is used to define the action thet will be connected with switching the button between states 0 or 1.
There are variables that affect the button and text color, text size and margins in the script on the "Draw" tab.
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.

Button text in the state 0Text written into variable.
Button text in the state 1Text written into variable.

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

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice