Sign in Join
FPDoc Onlineexperiment

TControl.Create constructor

Member of TControlpublicIn unit Controls

Constructor for the class instance.

Declaration

pascal
constructor Create(TheOwner: TComponent); override

Description

Create is the overridden constructor for the class instance. Create calls the inherited constructor using TheOwner as the owner for the class instance. Resources are allocated in the method for members in the class instance, and the default values are set for the following properties:

  • Align
  • Anchors
  • BaseBounds
  • CaptureMouseButtons
  • Color
  • ControlStyle
  • Cursor
  • DesktopFont
  • DragCursor
  • Enabled
  • FloatingDockSiteClass
  • Font
  • HelpType
  • IsControl
  • ParentBidiMode
  • ParentColor
  • ParentFont
  • ParentShowHint
  • Visible
  • WindowProc
Create ensures that auto-sizing is disabled until the class instance is fully realized. Auto-sizing is re-enabled on exit from the method.

See also

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