Sign in Join
FPDoc Onlineexperiment

TCalculatorPanel.DisplayValue property

Member of TCalculatorPanelpublicIn unit CalcForm

Contains the Double value representing the result (and Text) displayed on the calculator panel.

Declaration

pascal
property DisplayValue: Double read GetDisplay write SetDisplay;

Description

DisplayValue is a Double property which contains the result for a value entered or calculated using the calculator panel. The property value is determined by calling StrToDouble to convert the value in Text to a floating point value. The property value is 0.0 if Status contains csError.

Changing the value for the property causes Text to be updated. The Double value is formatted using the Precision needed for the panel, and the OnDisplayChange event handler is signalled (when assigned).

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.