Preconfiguration "Button two-state"
Creates graphic item configured as two-state button.
The created item PmiCanvas
has variables title0
. Variables title0
are used for text displayed on the button in state 0
. Variables mode
define its design. The state
variable defines the current state 0
The events onKeyPress
are solving the conditions that are defined for triggering the user methods onPressUp
of the graphic item.
The user method onPressUp
on the Methods
page of the graphic item is used to define the action thet will be connected with switching the button between states 0
There are variables that affect the button and text color, text size and margins in the script on the Draw
These configurators can be set before the preconfiguration is created:
|Button text in state 0||Text written into variable.title0|
|Button text in state 1||Text written into variable.title1|