Preconfiguration "Button two-state"
Creates object configured as two-state button.
This preconfiguration can be activated when creating a new Pmg object
and is included in the group: "/ Button / Button two-state"
The created PmgCanvas
object contains variables title0
. Variable title0
are used for text displayed in the button in the state 0
. Variable mode
define its appearance. the state
variable defines the current state 0
The events onKeyPress
are solving the conditions that are defined for calling the designer's "onPressUp
Designer's method onPressUp
on the "Methods
" tab of the Pmg
object is used to define the action that 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:
|The name of created object||Name (identifier) of the Pmg object. It is used for obtaining the Pmg object by the PmgObject.Items method.
This configurator sets the initial value of the Name property.
The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and the first character must not be a number.
|Border and shading type||Sets the border type and shading of the graphic object.
wider 3D border, with shading
thin 3D border, no shading
thin simple border, no shading
|Button text in the state 0||Text written into variable. title0|
|Button text in the state 1||Text written into variable. title1|
|Status change confirmation dialog||Confirmation dialog before executing the action.|
|Question before confirming the action|