Sign in Join
FPDoc Onlineexperiment

TCustomCheckBox.CreateParams procedure

Member of TCustomCheckBoxprotectedIn unit StdCtrls

Initializes the window creation parameter record with the settings for the control.

Declaration

pascal
procedure CreateParams(var Params: TCreateParams); override

Arguments

Params

Creation parameters updated in the method.

Description

CreateParams is a procedure used to initialize and/or update creation parameters in the Params argument. CreateParams is called from the CreateWnd method when the window handle is allocated for the control.

CreateParams ensures that values in the TCreateParams record instance contain the values needed for the class instance. The following members in the record are update:

Caption
Set to the value in the Caption property.
Style
Includes flag values: WS_CHILD, WS_CLIPSIBLINGS, WS_CLIPCHILDREN, and WS_TABSTOP when needed.
ExStyle
Includes style values needed for the value in ControlStyle and BorderStyle.
WndParent
Set to the handle in ParentWindow, or Parent.Handle when assigned.
X, Y, Width, Height
Set to the property values in the class instance.

This description is the one of Controls.TWinControl.CreateParams.

See also

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