Sign in Join
FPDoc Onlineexperiment

TCustomFrame.Create constructor

Member of TCustomFramepublicIn unit Forms

Constructor for the class instance.

Declaration

pascal
constructor Create(AOwner: TComponent); override

Description

Create is the overridden constructor for the class instance. Create calls the inherited method using AOwner as the owner for the class instance. Create sets the ControlStyle property to the following enumeration values:

  • csAcceptsControls
  • csCaptureMouse
  • csClickEvents
  • csSetCaption
  • csDoubleClicks
  • csParentBackground

Create uses the default size for its class type to set the initial bounds for the control.

Errors

Raises an EResNotFound exception at run-time if the ClassType for the class instance is not derived from TFrame.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.