[Overview][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 128

type TCalculatorDialog = class(TExtCommonDialog) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  procedure OnDialogClose();

  procedure OnDialogShow();

  procedure OnDialogCloseQuery();

  procedure Change; virtual;

  

Change - software emulator for the OnChange event

  procedure CalcKey(); virtual;

  

CalcKey - software emulator for the OnCalcKey event

  function DefaultTitle; override;

  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 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: TTranslateString;

  

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

  property DialogScale: Integer; [rw]

  property ColorBtnDigits: TColor; [rw]

  property ColorBtnMemory: TColor; [rw]

  property ColorBtnOk: TColor; [rw]

  property ColorBtnCancel: TColor; [rw]

  property ColorBtnClear: TColor; [rw]

  property ColorBtnOthers: TColor; [rw]

  property ColorDisplayText: TColor; [rw]

  property ColorDisplayBack: TColor; [rw]

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

|

TExtCommonDialog

|

TCommonDialog

  

TCommonDialog : the base type from which other dialogs are derived

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

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