[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 119

type TCalculatorDialog = class(TCommonDialog)

protected

  procedure Change; dynamic;

  

  procedure CalcKey(); dynamic;

  

  procedure DisplayChange; dynamic;

  

public

  constructor Create(); override;

  

  destructor Destroy; override;

  

  function Execute; override;

  

  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 Ctl3D: Boolean; [rw]

  

  property HelpContext: THelpContext; [rw]

  

  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]

  

  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

?

TObject