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

TCustomScrollBar

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

The base class for TScrollBar.

Declaration

Source position: stdctrls.pp line 67

type TCustomScrollBar = class(TWinControl) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  class function GetControlClassDefaultSize; override;

  procedure CreateParams(); override;

  procedure CreateWnd; override;

  

CreateWnd - calls inherited CreateWnd then initialises various Scroll Info properties

  procedure Change; virtual;

  

Invokes the OnChange handler.

  procedure Scroll(); virtual;

  

Invokes the OnScroll handler.

  procedure CalculatePreferredSize(); override;

public

  constructor Create(); override;

  procedure SetParams();

  

Defines the Max and Min values, the size of the page and the position of the scroller

  property Kind: TScrollBarKind; [rw]

  

The scrollbar orientation, horizontal or vertical.

  property LargeChange: TScrollBarInc; [rw]

  

The distance to scroll on an click beneath the slider.

  property Max: Integer; [rw]

  

The maximum value, for the bottom or rightmost position.

  property Min: Integer; [rw]

  

The minimum value, for the top or leftmost position.

  property PageSize: Integer; [rw]

  

The size of the slider, relative to the total scroll range.

  property Position: Integer; [rw]

  

The position value of the slider in the ScrollBar.

  property SmallChange: TScrollBarInc; [rw]

  

The distance to scroll on an click on the up/down buttons.

  property TabStop: Boolean;

  

Allows the user to navigate to this control, by pressing the Tab key.

  property OnChange: TNotifyEvent; [rw]

  

Event handler for any change of the Position.

  property OnScroll: TScrollEvent; [rw]

  

Handler for a scrolling event by mouse, keyboard or code.

Inheritance

TCustomScrollBar

  

The base class for TScrollBar.

|

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

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