Object PmgSlider (Slider)
Entering numeric value by slider.
On running the application it is possible to change the slider value either by dragging the slider or by clicking the mouse on one of the arrows or by clicking the mouse on the slider background. The value is then fluently changed in the ValueMin, ValueMax range.
This object adopts properties and methods of the PmgPane
Properties and methods:
|Value|| Value corresponding to slider button|
|ValueMax|| High limit of entered value|
|ValueMin|| Low limit of entered value|
|onDataEditAccept|| Is triggered after final change of the object content|
|onFocusIn|| Is triggered if the object receives focus|
|onFocusOut|| Is triggered if the object loses focus|
|onKeyPress|| Is triggered after pressing or releasing the key of the keyboard|
|onMenuFill|| Is triggered after pressing by the right mouse button over the Pmg object|
|onMenuSelect|| Is triggered on the selection of an item from the Pmg object local menu|
|onModeChange|| Is triggered when the Pmg object mode changes|
|onMousePress|| Is triggered after pressing or releasing the left mouse button|
|onRefresh|| Is triggered on the data refresh of the Pmg object|
|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|
|Object|| General information about the object|
|Content|| Content of the Pmg object in the XML form|
|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's method of the Pmg object|
|Panel|| Setting the background area of the Pmg object|
|Slider|| Slider configuration.|
The slider value is accessible by means of the Value
property. Its data binding specifies the variable into which the value corresponding to the slider button position is transferred in the runtime mode. The data binding is here "for read and write", it means that if the value of the data binding is changed by other methods (e.g. in the script), then the change of this value is reflected into the slider button position.
The slider doesn't contain a visible scale, entering the value is only for the orientation. If it is necessary to show the scale or the entered value, then it can be used the more complex PmgSliderPane object.
For numeric entering the value the PmgNumber object (entering the value on the place in the object) can be used.
: Object name changed: PmiSlider