FMX.StdCtrls.TCustomTrack.OnTracking
Delphi
property OnTracking: TNotifyEvent read FOnTracking write FOnTracking;
C++
__property System::Classes::TNotifyEvent OnTracking = {read=FOnTracking, write=FOnTracking};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | FMX.StdCtrls.pas FMX.StdCtrls.hpp |
FMX.StdCtrls | TCustomTrack |
Description
Occurs immediately after the position of the slider of this track bar changes.
Write an OnTracking event handler to provide additional functionality when changing the position of the slider of this track bar component.
The OnTracking is very similar to OnChange. The following table shows the difference in the behavior of these events in certain scenarios:
Tracking | Scenario | Behaviour | Events fired | IsTracking |
---|---|---|---|---|
|
Press an arrow key on the keyboard. |
The Thumb moves for one "step". |
| |
|
The Thumb moves as much as you move it. |
For each "step" of the movement: |
| |
|
The Thumb moves as much as you move it. |
For each step of the movement: After you release the Thumb |
| |
|
Click anywhere on the track bar (excluding the Thumb). |
The Thumb moves for one "step". |
| |
|
Click anywhere on the track bar (excluding the Thumb). |
The Thumb moves to the position where you click. |
| |
|
Hold the |
The Thumb moves to the position where you click. |
|