class TMtxPositionPanel : public TPanel;
Advanced progress/position bar.
The component can be used as an indicator or as a navigation help. It displays a panel within a panel which can then be dragged with the mouse. The component is also usefull as an progress indicator.
There are two key events:
- OnChangePosition is called each time the position of the subpanel (bar) is changed.
- OnSetPosition is called only after the user releases the mouse after the drag operation.
The slider can move within a specified range defined with SliderRange property. The minimum and maximum of that range are defined with SliderMin and SliderMax properties. The SliderPosition can take any value between SliderMin and SliderMax. The SliderSpan defines the length of the position bar within SliderRange.
Constructors
| Name | Description |
|---|---|
| TMtxPositionPanel |
Properties
| Name | Type | Description |
|---|---|---|
| CancelMouse | bool | If false, it is possible to drag the slider with the mouse. |
| OnChangePosition | TNotifyEvent | Triggered each time the SliderPosition property is changed. |
| OnSetPosition | TNotifyEvent | Triggered only after the user releases the mouse button after dragging the slider. |
| SliderBevelInner | TPanelBevel | Specifies the formating of the slider. |
| SliderBevelOuter | TPanelBevel | Specifies the formating of the slider. |
| SliderBevelWidth | TBevelWidth | Specifies the formating of the slider. |
| SliderColor | TColor | Defines the color of the slider. |
| SliderMax | double | Defines the maximum for definition range within which the slider can move. |
| SliderMin | double | Defines the minimum for definition range within which the slider can move. |
| SliderPosition | double | Defines the position of the left most edge of the slider. |
| SliderRange | double | Defines the range of the slider. |
| SliderSpan | double | Specifies the span of the slider. |
| SliderSpanMin | int | Minimum slider tolerance. |
Methods
| Name | Description |
|---|---|
| GetCancelMouse | |
| GetOnChangePosition | |
| GetOnSetPosition | |
| GetSliderBevelInner | |
| GetSliderBevelOuter | |
| GetSliderBevelWidth | |
| GetSliderColor | |
| GetSliderMax | |
| GetSliderMin | |
| GetSliderPosition | |
| GetSliderRange | |
| GetSliderSpan | |
| GetSliderSpanMin | |
| MouseDown | |
| MouseMove | |
| MouseUp | |
| Paint | |
| SliderReset | Sets all slider properties to 0. |
Fields
| Name | Type | Description |
|---|---|---|
| SavedMousePos | double | |
| SavedSliderPos | double |