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

# TCustomScrollBar

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

TCustomScrollBar : the base class for TScrollBar

## Declaration

Source position: stdctrls.pp line 69

`type TCustomScrollBar = class(TWinControl)`
`protected`
`procedure WSRegisterClass; override;` |  | WSRegisterClass - Register this Class for the current Widget Set
`procedure CreateParams(); override;` |  | CreateParams - calls inherited CreateParams then sets up style and alignment depending on whether horizontal or vertical
`procedure CreateWnd; override;` |  | CreateWnd - calls inherited CreateWnd then initialises various Scroll Info properties
`procedure Change; virtual;` |  | Change - method to signal that a change has occured
`procedure Scroll(); virtual;` |  | The scrolling process
`public`
`constructor Create(); override;` |  | Create - constructor for TCustomScrollBar: calls inherited Create then initialises size, style and various local variables
`procedure SetParams();` |  | Defines the Max and Min values, the size of the page and the position of the scroller
`property Kind: TScrollBarKind; [rw]` |  | Kind of scroll bar - whether Horizontal or Vertical
`property LargeChange: TScrollBarInc; [rw]` |  | LargeChange - the size of the step to be taken by the slider for a large change
`property Max: Integer; [rw]` |  | The maximum value (for bottom of the scroll bar or the right-most extent)
`property Min: Integer; [rw]` |  | The minimum value, for the top of the scroll bar or its left-most extent
`property PageSize: Integer; [rw]` |  | PageSize: the size of a page - typically used for LargeChange
`property Position: Integer; [rw]` |  | The Position of the scroller along the ScrollBar
`property SmallChange: TScrollBarInc; [rw]` |  | SmallChange - the size of the step to be taken by the scroller for a small change
`property TabStop;` |  | Is the control in the sequence of controls accessed by successive presses of the Tab key?
`property OnChange: TNotifyEvent; [rw]` |  | OnChange - Event handler for any change in position of the slider or other mouse movement or keyboard event associated with the scrollbar
`property OnScroll: TScrollEvent; [rw]` |  | OnScroll - Handler for a scrolling event (by mouse, keyboard or program)
`end;`

## Inheritance

`TCustomScrollBar` |  | TCustomScrollBar : the base class for TScrollBar
`TWinControl` |  | TWinControl - the base class for all windowed controls
`TControl` |  | TControl - the main ancestor class for visual controls.
`TLCLComponent`
?
`TObject`

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