Sign in Join
FPDoc Onlineexperiment

TCustomScrollBar.Create constructor

Member of TCustomScrollBarpublicIn unit StdCtrls

Constructor for the class instance.

Declaration

pascal
constructor Create(AOwner: TComponent); override

Arguments

AOwner

Owner of the class instance.

Description

Create is the overridden constructor for the class instance, and calls the inherited constructor on entry.

Create ensures that the component style is updated to csScrollBar and sets the initial bounds for the control to the values returned from GetControlClassDefaultSize. Create sets the default values for properties, like:

TabStop
Set to True.
ControlStyle
Includes the values: [csFramed, csDoubleClicks, csOpaque]. Excludes the values: [csAcceptsControls, csDoubleClicks, csCaptureMouse, csSetCaption].
Kind
Set to sbHorizontal.
Position
Set to 0.
Min
Set to 0.
Max
Set to 100.
SmallChange
Set to 1.
LargeChange
Set to 1.

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