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

TCalculatorPanel.DisplayValue

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

Declaration

Source position: calcform.pas line 85

public property TCalculatorPanel.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

TCalculatorPanel.Text

  

Text representation for the Double display value on the calculator panel.

TCalculatorPanel.Precision

  

Number of digits used after the decimal for the Double value in the calculator panel.

TCalculatorPanel.WorkingPrecision

  

Gets the minimum number of precision digits allowed for the DisplayValue on the panel.

TCalculatorPanel.Status

  

Contains the status or state for the calculator panel.


Version 4.0 Generated 2025-05-03 Home