Preconfiguration "Button with icon"

Creates graphic item configured as button.
The created item PmiCanvas has following variables:
title - text displayed in button
mode - defines the look of the button if focused or cursor hovering over
push - defines the look of the button if pressed
The events onKeyPress and onMousePress solve the conditions that are defined for calling the user method onPressUp or onPressDown of the graphic item.
User methods onPressUp or onPressDown on the Methods page of the graphic item 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 page.
These configurators can be set before the preconfiguration is created:
Button textText written into variable title.
Simple example - Releasing the button
Simple example - Pressed and released button
Simple example - Selected 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;)
Open SelectionDialog with item selection from menu
Open form window (PmForm)
Path to panel
Image (text) location in buttonImage and text location in button.
Whole area (no text)
Top (text centered down)
Left (text behind image on left)
Left (text centered left)
Left (text to right edge)
Right (text to left edge)
Right (text centered left)
Right (text to image right)
Text colorText color
Image backgroundImage background color
Image selectionOpens image selection window
PreviewImage preview
PROMOTIC 8.3.20 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