[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ExtDlgs' (#lcl)

# TCalculatorForm

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TCalculatorForm - a normal form with a built-in calculator

## Declaration

Source position: extdlgs.pas line 164

`type TCalculatorForm = class(TForm)`
``
`class procedure WSRegisterClass; override;` |  | WSRegisterClass - Register this Class for the current Widget Set
`protected`
`procedure OkClick();` |  | OkClick - method to handle a click on th eOK button
`procedure CancelClick();` |  | CancelClick - method to handle a click on the Cancel button
`procedure CalcKey();` |  | CalcKey - method to handle activation of the specified calculator key
`procedure DisplayChange();` |  | DisplayChange - method for handling a change in the calculator display
`procedure InitForm(); virtual;` |  | InitForm - initialise the form, using the specified calculator layout
`property MainPanel: TPanel; [r]` |  | The MainPanel of the Form, which can contain any sort of LCL components
`property CalcPanel: TPanel; [r]` |  | The CalcPanel which displays the calculator
`property DisplayPanel: TPanel; [r]` |  | The DisplayPanel within the calculator panel, that holds the numeric display
`property DisplayLabel: TLabel; [r]` |  | The DisplayLabel for the calculator display
`public`
`constructor Create(); override;` |  | Create - constructor for the whole form, not just the calculator
`constructor CreateLayout();` |  | CreateLayout - constructor for the calculator panel using the specified layout
`property Value: Double; [rw]` |  | Value - the numeric value, the result of the calculation, to be returned to the main program
`end;`

## Inheritance

`TCalculatorForm` |  | TCalculatorForm - a normal form with a built-in calculator
`TForm`
`TCustomForm` |  | TCustomForm - the base type for TForm
`TScrollingWinControl` |  | TScrollingWinControl - a class of Window Control that has one or more scroll bars
`TCustomControl` |  | TCustomControl - a base class for many window controls
`TWinControl`
`TControl`
`TLCLComponent` |  | TLCLComponent - base class for LCL components
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

## Description

TCalculatorForm - a normal form with a built-in calculator

There is a MainPanel in which the standard LCL widgets can be placed, and a CalcPanel which displays a calculator which has the functionality of a TCalculatorDialog but remains permanently displayed

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