Sign in Join
FPDoc Onlineexperiment

TTrackBar.Position property

Member of TTrackBarpublishedIn unit ComCtrls

Location of the slider on the track bar between the Min and Max values.

Declaration

pascal
property Position:;

Description

Position is an Integer property with the current location of the slider on the track bar control. Position contains a value in the range specified by the Min and Max properties.

If Position is set to a value outside that range, it is set to the limit which it exceeds. The new value for the property is applied to the widgetset class instance when its Handle has been allocated. Position is used in the SetParams method to determine if new property values needs to be applied to the widget.

The property value is updated in DoChange where its value is read from the widget. It is also updated in FixParams if the property value is outside the range allowed in Min and Max.

Changing the value for the property causes the OnChange event handler to be signalled (when assigned).

This description is the one of ComCtrls.TCustomTrackBar.Position.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.