Sign in Join
FPDoc Onlineexperiment

TCustomMemo.CreateParams procedure

Member of TCustomMemoprotectedIn unit StdCtrls

Updates creation flags used to create the handle for the control.

Declaration

pascal
procedure CreateParams(var Params: TCreateParams); override

Arguments

Params

Creation parameters for the control.

Description

CreateParams is overridden in TCustomMemo, and calls the inherited method on entry. CreateParams ensures that style flags needed for the multi-line control are included in the Style property in the Params argument.

Values from the ScrollBars and WordWrap properties are checked, and flags are added as needed. ScrollBars causes window style flags to be added like WS_HSCROLL and/or WS_VSCROLL. When WordWrap is set to True, the WS_HSCROLL window style is removed from the creation parameters. Otherwise, the edit style ES_AUTOHSCROLL is added to the creation parameters.

See also

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