Object PmiButton (One-state button)

The one-state button is determined for starting the script (e.g. switching into another panel, transferring a value, playing a sound file,...).

The script is defined in the onButtonDown or onButtonUp event.

This object adopts properties and methods of object PmiPanel.
Properties and methods:
ColorText Text color in the button
ImageSrc The file name with the path to the image file displayed in the button
StateEx Returns state of the button
Text Text in the button
onButtonDown Fires on pressing the button
onButtonUp Fires on releasing the button
Configuration windows:
Object General information about the object
Content Content of the graphic item in the XML form
Position Setting the position, width and height of the item
Subitems It is used for creating compound items
Variables List and configuration of user defined item variables
Events Algorithms definition for the object events
Methods Definition of designer's methods in the graphic item
Panel Setting the background area of the edited graphic item
Button Button properties.

If the method calling any modal window forms a part of the script (e.g. the Pm.InputBox), then such script has to be placed into the onButtonUp event (otherwise OS Windows doesn't ensure that the button is drawn correctly).

The button can be drawn with the bitmap. This can be changed by means of the T - Binding to calculation based on a table of values data binding depending on the state of pressing the button (See property: StateEx).

See also:
PROMOTIC 8.3.30 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