[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Initializes and configures the calculator panel using the specified layout.
Source position: calcform.pas line 78
public constructor TCalculatorPanel.CreateLayout( |
AOwner: TComponent; |
ALayout: TCalculatorLayout |
); |
AOwner |
|
Component which owns the class instance. |
ALayout |
|
Layout applied to the panel and its buttons. |
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.
|
Contains the Double value stored as the memory for the calculator panel. |
|
|
Initializes the calculator form using the specified layout. |
|
|
Represents layouts used for panels on a TCalculatorForm instance. |
|
|
Constructor for the class instance. |
Version 4.0 | Generated 2025-05-03 | Home |