[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomTrackBar

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TCustomTrackBar - the base class for TTrackBar

Declaration

Source position: comctrls.pp line 1638

type TCustomTrackBar = class(TWinControl)

protected

  procedure ApplyChanges;

  

ApplyChanges - implement any pending changes

  procedure DoChange(); message;

  

DoChange - system message to implement changes

  procedure FixParams();

  function GetControlClassDefaultSize; override;

  

Find the default size for this class of controls (by reference to parents)

  procedure InitializeWnd; override;

  

InitializeWnd - initialise the window for this control

  procedure Loaded; override;

  

public

  constructor Create(); override;

  

  procedure SetTick();

  

SetTick - set the interval for ticks on the taskbar (integer)

published

  property Frequency: Integer; [rw]

  

Frequency - how frequently the position of the slider is to be read and updated (currently unsupported)

  property LineSize: Integer; [rw]

  

Line-Size - increment for slider position when an arrow key is pressed

  property Max: Integer; [rw]

  

Max - the value corresponding to full movement of the slider. Default = 10

  property Min: Integer; [rw]

  

Min - the value associated with the minimum slider position. Default = 0

  property OnChange: TNotifyEvent; [rw]

  

OnChange - action to be taken on change in the slider position

  property Orientation: TTrackBarOrientation; [rw]

  

Orientation - horizontal or vertical

  property PageSize: Integer; [rw]

  

PageSize - increment for slider position when PageUp or PageDown key is pressed

  property Position: Integer; [rw]

  

Position - the location of the slider along the track bar. Represents the Return value from the control

  property ScalePos: TTrackBarScalePos; [rw]

  

ScalePos - whether scaling label appears at top, bottom, left or right

  property TabStop;

  

Is the control in the sequence of controls accessed by successive presses of the Tab key?

  property TickMarks: TTickMark; [rw]

  

Tickmarks - whether the ticks are above/left, below/right, or both

  property TickStyle: TTickStyle; [rw]

  

TickStyle - none, produced automatically, or calculated manually

end;

Inheritance

TCustomTrackBar

  

TCustomTrackBar - the base class for TTrackBar

|

TWinControl

?

TObject

Description

TCustomTrackBar defines many of the properties inherited by TTrackBar, a device that allows the user to determine the value of a variable using a quasi-analog slider