Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Button - tab of the PmgButton object

Description:
Button properties.
Configuration items:
'onButtonUp' event always triggeredIf not set, then the onButtonUp event is triggered if the button is pressed by the keyboard or if it is pressed by the mouse and the mouse button is released over the button (if the mouse button is released outside the area of the button-Pmg object, then the onButtonUp event is not triggered).

If is set, then the event is triggered always regardless of the position where the mouse button is released.

Multiline textIf checked, then the text uses the line automatically breaks. In this case the New line is entered by the key combination of Ctrl+Enter.
Change gradient direction after pressingIf checked, then the gradient direction is changed after pressing the button. The "Gradient" configurator must be checked in this case.
Flat viewIf checked, then the button is displayed normally without the border and shading (no 3D effect). If the mouse cursor passes over the putton (in the runtime mode), then the 3D effects are displayed. The 3D effects dissapear as the mouse cursor leaves the button area.
Text

This configurator sets the initial value of the Text property.

Macro expression can be used for input ($.text ..) (it is evaluated while the window is opening).

FontFont of the text.
ColorText color

This configurator sets the initial value of the ColorText property.

Alignment horizontalHorizontal alignment of the text
left
Center
Right
Alignment verticalVertical alignment of the text
Up
Center
Down
RotateText rotation (is only in PmgString, PmgNumber, PmgButton and PmgButtonState objects)
Do not rotate
Left - Text will be rotated 90 degrees counterclockwise
Down - Text will be rotated upside down
Right - Text will be rotated 90 degrees clockwise
Picture fileFile with a picture (svg, jpg, png, bmp, wmf..) that will be drawn on the button. by means of the "T - Data binding to calculation based on a table of values" data binding it is possible to change the image depending on the state of pressing the button (see StateEx).

This configurator sets the initial value of the ImageSrc property.

It is recommended to always use the path with #pmres: or #appres:.

Macro expression can be used for input (it is evaluated while the window is opening).

Show imagePositioning the picture in the button:
spread on all area - The image will be stretched over the whole button area.
as a wallpaper - The image will be repeated over the whole button area.
left from text - The image will be located as icon to the left of the text. The location of the image and text block is based on the text alignment setting.
right from text - The image will be located as icon to the right of the text. The location of the image and text block is based on the text alignment setting.
top from text - The image will be located as icon above the text. The location of the image and text block is based on the text alignment setting.
bottom from text - The image will be located as icon below the text. The location of the image and text block is based on the text alignment setting.
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