[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Buttons' (#lcl)

TCustomBitBtn.Create

Create - constructor for TCustomBitBtn: calls inherited Create then initialises layout, style and spacing, creates the Button Glyph

Declaration

Source position: buttons.pp line 172

public constructor TCustomBitBtn.Create(

  TheOwner: TComponent

); override;

Description

If you drop a component on the form editor you don´t need to add code to explicitly create it. The component is automatically created together with the the form, and destroyed when the form is destroyed. However, if you create the component by code don´t forget to free it when it is no longer needed. Constructors allocate memory and system resources needed by the object. They also call the constructor of any sub-objects present in the class.

See also

TComponent.Create

TCustomButton.Create

  

Create - constructor for TCustomButton: calls inherited Create then initialises style, colour, bounds, alignment and various other properties

The latest version of this document can be found at lazarus-ccr.sourceforge.net.