Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Object PmgButtonState (Two-states button)

Description:
The button is determined for switching two states, for example on-off. After pressing the button the internal state of the button is toggled (0->1 or vice versa) and the onButtonUp event is triggered. The button state is graphically expressed by displayed text or by displayed bitmap and internally stored in the State property.
This object adopts properties and methods of the PmgPane object.
Properties and methods:
ColorText Text color in the button for the state 0
ColorText1 Text color in the button for the state 1
ImageSrc The file name with the path to the image file displayed on the button in the state 0
ImageSrc1 The file name with the path to the image file displayed on the button in the state 1
State State of the two-state button (0 or 1)
StateEx Returns one of five button states
Text Text in the button for the state 0
Text1 Text in the button for the state 1
Events:
onButtonUp Is triggered on pressing the button by the keyboard or the mouse
onFocusIn Is triggered if the object receives focus
onFocusOut Is triggered if the object loses focus
onKeyPress Is triggered after pressing or releasing the key of the keyboard
onMenuFill Is triggered after pressing by the right mouse button over the Pmg object
onMenuSelect Is triggered on the selection of an item from the Pmg object local menu
onModeChange Is triggered when the Pmg object mode changes
onMousePress Is triggered after pressing or releasing the left mouse button
onRefresh Is triggered on the data refresh of the Pmg object
onStart Is triggered on the construction of the Pmg object in the course of opening the panel
onStop Is triggered on the destruction of the Pmg object in the course of closing the panel
Configuration tabs:
Object General information about the object
Content Content of the Pmg object in the XML form
Position Setting the position, width and height of the Pmg object
Variables List and configuration of user defined Pmg object variables
Events Algorithms definition for the object events
Methods Definition of designer's method of the Pmg object
Panel Setting the background area of the Pmg object
Button Common properties of two-state button
State Button properties in the state 0 or 1
See also:
- PmgButton (object)

History:
Pm8.00.07: and PmgButton object: Icon and text alignment is now working. If the "Show image" configurator is set to "left from text" and the text is still algned to left, then the icon is also aligned to the left together with the text (it was always centered in the previous versions). It is functional also for Web panels.
Pm9.00.00: Object name changed: PmiButtonTwo -> PmgButtonState
PROMOTIC 9.0.12 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