Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfiguration "Button"

Creates object configured as button.
 
The created PmgCanvas object has following variables:
title - text displayed in button
mode - (system variable) defines the look of the button if focused or cursor hovering over the object
push - (system variable) defines the look of the button if pressed
 
The events onKeyPress and onMousePress solve the conditions that are defined for calling the designer's method onPressUp or onPressDown.
 
Designer's methods onPressUp or onPressDown on the "Methods" tab of the Pmg object are used to define action that will be connected with pressing and releasing the button. But the button configured as Menu (selected from button menu) has the item selection and user actions configured in the events onMenuFill and onMenuSelect.
 
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 textText written into variable title.
Action
Simple example - Releasing the button
Simple example - Pressed and released button
Simple example - Selection from button menu
Open panel - in main frame (target:main;)
Open panel - in this frame (target:_self)
Open panel - in independent window (target:_blank;)
Open modal panel (target:_blank;modal:1;)
Opening the viewer for option selection (/#glob/list) with item selection from menu
Open form window (PmForm)
Open form window - (time from)
Open form window - (time from/to)
Multi-select from a list of items
Path to panel

History:
Pm8.03.00: Created
PROMOTIC 9.0.13 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