Sign in Join
FPDoc Onlineexperiment

TCalculatorPanel.CreateLayout constructor

Member of TCalculatorPanelpublicIn unit CalcForm

Initializes and configures the calculator panel using the specified layout.

Declaration

pascal
constructor CreateLayout(AOwner: TComponent; ALayout: TCalculatorLayout)

Description

CreateLayout is a constructor for the class instance. It calls the inherited Create constructor on entry, and sets the default values for properties.

AOwner is the component which owns the class instance (the TCalculatorForm instance).

ALayout specifies both the position and size for the buttons on the panel. It affects the Width and Height for the panel as well.

CreateLayout creates the calculator buttons and positions them on the panel for the specified layout. When clNormal is used in ALayout, buttons are created for Back, Clear, Ok and Cancel. clNormal also causes a panel used for Memory display to be created and positioned.

CreateLayout is called from the InitForm method in TCalculatorForm.

See also

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