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

# TCalculatorDialog

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

TCalculatorDialog - a small calculator window that pops up, allowing the user to perform simple calculations and return the value to the calling Component

## Declaration

Source position: extdlgs.pas line 122

`type TCalculatorDialog = class(TCommonDialog)`
``
`class procedure WSRegisterClass; override;` |  | WSRegisterClass - Register this Class for the current Widget Set
`protected`
`procedure Change; virtual;` |  | Change - software emulator for the OnChange event
`procedure CalcKey(); virtual;` |  | CalcKey - software emulator for the OnCalcKey event
`procedure DisplayChange; virtual;` |  | DisplayChange - software emulator for the OnDisplayChange event
`public`
`constructor Create(); override;` |  |
`destructor Destroy; override;` |  |
`function Execute; override;` |  | A public method causing the dialog box to appear, offer the relevant choices to the user and act upon the choice
`property CalcDisplay: Double; [r]` |  | CalcDisplay - the current numerical value in the main calculator display
`property Memory: Double; [r]` |  | Memory - the value stored in the calculator's memory
`published`
`property BeepOnError: Boolean; [rw]` |  | BeepOnError - if True, beeps when there is an entry error or other calculator error
`property HelpContext: THelpContext; [rw]` |  | HelpContext - an index to the context-dependent help message for this dialog
`property CalculatorLayout: TCalculatorLayout; [rw]` |  | CalculatorLayout - whether simple or normal
`property Precision: Byte; [rw]` |  | Precision - the level of precision to be used in calculations; default is set by DefCalcPrecision
`property Title: String; [rws]` |  | The Title or Caption to be shown at the top of the dialog box
`property Value: Double; [rw]` |  | Value - the numerical value (result) returned by the calculator
`property OnCalcKey: TKeyPressEvent; [rw]` |  | OnCalcKey - event handler for a key press in the calculator
`property OnChange: TNotifyEvent; [rw]` |  | OnChange - event handler for any change in the calculator
`property OnDisplayChange: TNotifyEvent; [rw]` |  | OnDisplayChange - event handler for any change in the calculator display
`end;`

## Inheritance

`TCalculatorDialog` |  | TCalculatorDialog - a small calculator window that pops up, allowing the user to perform simple calculations and return the value to the calling Component
`TCommonDialog` |  | TCommonDialog : the base type from which other dialogs are derived
`TLCLComponent` |  | TLCLComponent - base class for LCL components
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

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