Difference between revisions of "TTrackBar"
m |
|||
Line 1: | Line 1: | ||
{{TTrackBar}} | {{TTrackBar}} | ||
− | A '''TTrackBar''' [[image:ttrackbar.png]] is a | + | A '''TTrackBar''' [[image:ttrackbar.png]] is a component on the [[Common Controls tab]] of the [[Component Palette]] shows a tracking bar control. |
A TTrackBar contains a slider and sometimes tick marks. The TTrackBar is a scrollable control similar to the [[TScrollBar]]. | A TTrackBar contains a slider and sometimes tick marks. The TTrackBar is a scrollable control similar to the [[TScrollBar]]. | ||
+ | |||
+ | The <syntaxhighlight lang="pascal" inline> position</syntaxhighlight> [[Property|<syntaxhighlight lang="pascal" inline>property</syntaxhighlight>]] of a TTrackBar represents the current value of a TrackBar control. | ||
+ | The <syntaxhighlight lang="pascal" inline>min</syntaxhighlight> and <syntaxhighlight lang="pascal" inline>max</syntaxhighlight> properties are used to set minimum and maximum limit of a TrackBar. | ||
+ | |||
+ | The <syntaxhighlight lang="pascal" inline>orientation</syntaxhighlight> property determines whether the TrackBar is oriented on the horizontal or vertical axis. | ||
+ | The corresponding values are <syntaxhighlight lang="pascal" inline>trHorizontal</syntaxhighlight> or <syntaxhighlight lang="pascal" inline>trVertical</syntaxhighlight>. | ||
+ | |||
+ | The <syntaxhighlight lang="pascal" inline>frequency</syntaxhighlight> property defines the distance between the tick marks along the slider. | ||
+ | By default the <syntaxhighlight lang="pascal" inline>frequency</syntaxhighlight> is set to one. | ||
+ | For example, if <syntaxhighlight lang="pascal" inline>min</syntaxhighlight> and <syntaxhighlight lang="pascal" inline>max</syntaxhighlight> values of a TrackBar are 0 and 20. | ||
+ | By setting <syntaxhighlight lang="pascal" inline>frequency</syntaxhighlight> to 2 means, it will take 10 steps from 0 to 20. For example, when the {{keypress|Pgup}} key is pressed | ||
+ | |||
+ | When the TrackBar controls value is changed, a <syntaxhighlight lang="pascal" inline>onChanged</syntaxhighlight> event is fired. | ||
+ | This event can be processed to update all features linked to the TrackBar. | ||
==See also == | ==See also == |
Latest revision as of 17:01, 13 November 2019
│
English (en) │
suomi (fi) │
français (fr) │
русский (ru) │
A TTrackBar is a component on the Common Controls tab of the Component Palette shows a tracking bar control. A TTrackBar contains a slider and sometimes tick marks. The TTrackBar is a scrollable control similar to the TScrollBar.
The position
property
of a TTrackBar represents the current value of a TrackBar control.
The min
and max
properties are used to set minimum and maximum limit of a TrackBar.
The orientation
property determines whether the TrackBar is oriented on the horizontal or vertical axis.
The corresponding values are trHorizontal
or trVertical
.
The frequency
property defines the distance between the tick marks along the slider.
By default the frequency
is set to one.
For example, if min
and max
values of a TrackBar are 0 and 20.
By setting frequency
to 2 means, it will take 10 steps from 0 to 20. For example, when the Pgup key is pressed
When the TrackBar controls value is changed, a onChanged
event is fired.
This event can be processed to update all features linked to the TrackBar.
See also