[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 2631

type TCustomTrackBar = class(TWinControl) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  procedure ApplyChanges;

  

ApplyChanges - implement any pending changes

  procedure Changed; virtual;

  procedure DoChange(); message;

  

DoChange - system message to implement changes

  procedure FixParams();

  class function GetControlClassDefaultSize; override;

  

GetControlClassDefaultSize - returns its own defaults, overriding the inherited values

  procedure InitializeWnd; override;

  

Copies cached control properties to the just created widget.

  procedure Loaded; override;

  

Called when the control has been loaded from a resource, transfers the loaded property values to the widget.

public

  constructor Create(); override;

  

Create - constructor for TCustomTrackBar: calls inherited Create then initialises style, position, size and bounds

  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 Reversed: Boolean; [rw]

  property ScalePos: TTrackBarScalePos; [rw]

  

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

  property SelEnd: Integer; [rw]

  property SelStart: Integer; [rw]

  property ShowSelRange: Boolean; [rw]

  property TabStop: Boolean;

  

Allows the user to navigate to this control, by pressing 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

Inheritance

TCustomTrackBar

  

TCustomTrackBar - the base class for TTrackBar

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

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

The latest version of this document can be found at lazarus-ccr.sourceforge.net.