The button is used for switching between two states, for example on/off. After pressing and releasing the button, the internal state of the button is toggled (0->1 or vice versa) and the onButtonUp event is triggered. The button state is graphically represented by displayed text or by displayed bitmap and internally stored in the State property.| ColorText | Text color in the button in the state 0 |
|---|---|
| ColorText1 | Text color in the button in the state 1 |
| ImageSrc | The file name with the path to the image file displayed in the button in the state 0 |
| ImageSrc1 | The file name with the path to the image file displayed in the button in the state 1 |
| State | State of the two-state button (0 or 1) |
| StateEx | Returns one of five button states |
| Text | Text in the button in the state 0 |
| Text1 | Text in the button in the state 1 |
| BorderType | Type of the box border |
|---|---|
| BorderWidth | Width of the box border |
| ColorDark | Dark color of the 3D Pmg object border |
| ColorItem | Background color of the box |
| ColorLight | Light color of the 3D Pmg object border |
| AddEvent() | Registers a function into the specified event |
|---|---|
| Blink() | Starts/stops blinking of the Pmg object |
| Dx | Width of the Pmg object |
| Dy | Height of the Pmg object |
| Enabled | Enable/disable the control, i.e. user-defined inputs to the object |
| Focus | Detects/set the focus of the Pmg object |
| GetChildByIndex() | Returns the nested Pmg object defined by order |
| GetChildCount() | Returns the number of nested Pmg objects |
| GetPathName() | Object name with the path to this object |
| GetItemInfo() | Returns special information regarding the Pmg object |
| GetPar() | Reading the value of the Pmg object parameter (or its parents) |
| IniDx | Initial width of the Pmg object |
| IniDy | Initial height of the Pmg object |
| IniX | Initial X-position of the left upper corner of the Pmg object relative to superior object |
| IniY | Initial Y-position of the left upper corner of the Pmg object relative to superior object |
| Items() | Returns reference to the Pmg object |
| Methods | Access to designer methods of this object |
| MouseOn | Identification if the mouse cursor finds itself over the Pmg object |
| Name | The name of the Pmg object |
| Parent | Returns reference to the parent Pmg object |
| Pm() | Returns the Pma object (obsolete) |
| PmPanel | Returns reference to the PmaPanel object where the Pmg object is placed |
| Refresh() | Refresh of the Pmg object |
| RemoveEvent() | Unregisters the function in the specified event |
| Root | Returns reference to the root PmgRoot object |
| ShowMenu() | Opens context menu of the Pmg object |
| ScreenX | X-coordinate of the left upper corner of the Pmg object relative to computer screen |
| ScreenY | Y-coordinate of the left upper corner of the Pmg object relative to computer screen |
| ToolTip | Tooltip text of the Pmg object |
| Vars() | Returns the variable of the Pmg object |
| ViewX | Position of X-coordinate of the left upper corner of the Pmg object relative to the PmgRoot object |
| ViewY | Position of the Y-coordinate of the left upper corner of the Pmg object relative to the PmgRoot object |
| Visible | Visibility of the Pmg object |
| X | X-coordinate of the left upper corner of the Pmg object relative to superior Pmg object |
| Y | Y-coordinate of the left upper corner of the Pmg object relative to superior Pmg object |
| onButtonUp | Is triggered on pressing the button on the keyboard or the left mouse button |
|---|
| onStart | Is triggered on the construction of the Pmg object in the course of opening the panel |
|---|---|
| onStop | Is triggered on the destruction of the Pmg object in the course of closing the panel |
| onRefresh | Is triggered on the data refresh of the Pmg object |
| onKeyPress | Is triggered after pressing or releasing the key of the keyboard |
| onMousePress | Is triggered after pressing or releasing the left mouse button |
| onMenuFill | Is triggered after pressing by the right mouse button over the Pmg object |
| onMenuSelect | Is triggered on the selection of the item from the Pmg object context menu |
| onModeChange | Is triggered when the Pmg object mode changes |
| onFocusIn | Is triggered if the object receives focus |
| onFocusOut | Is triggered if the object loses focus |
| Object | General information about the object |
|---|---|
| Position | Setting the position, width and height of the Pmg object |
| Variables | List and configuration of user defined Pmg object variables |
| Events | Algorithms definition for the object events |
| Methods | Definition of designer method of the Pmg object |
| Box | Setting the background area of the Pmg object |
| Button | Common properties of two-state button |
| State | Button properties in the state 0 or 1 |