Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Object PmiButtonTwo (Two-states button)

Description:
The button is determined for switching two states, for example on-off. On pressing the button the internal state of the item is toggled (0->1 or vice versa) and the onButtonUp event fires. The button state is graphically expressed by displayed text or by displayed bitmap and internally stored in the State property.
This object adopts properties and methods of object PmiPanel
Properties and methods:
ColorText Text color in the button for the state 0
ColorText1 Text color in the button for the state 1
ImageSrc Pathname to the image file displayed on the button in the state 0
ImageSrc1 Pathname to the image file displayed on the button in state 1
State State of the two-state button (0 or 1)
StateEx Returns one of five button states
Text Text in the button for the state 0
Text1 Text in the button for the state 1
Events:
onButtonUp Fires on pressing the item by the keyboard or the mouse
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 user's methods of the graphic item
Panel Setting the background area of the edited graphic item
Button Common properties of two-state button
State Button properties in state 0 or 1
See also:
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice