Rx Calculator

RX Library

Control Name Unit Class
Rx Calculator RxCalc TRxCalculator

Description:
Rx Calculator is a floating point calculator designed to do simple operations. It is an invisible component, or one that pops-up upon operation.

Use the
Execute method to popup the Calculator. If any errors occur on calculators, use the BeepsOnError to control beeping on errors If you prefer the classical white calculator, set the Clt3d to false.


Method Execute
Method Execute starts the calculator.


Property BeepOnError
Set property BeepOnError to true and a beep will be generated.

BeepOnError determines whether a beep is sounded when an invalid character is entered. If BeepOnError is True, MessageBeep is called when an invalid character is entered or when a character is entered and the field is full.


Property Ctl3d
3D shaded gray or white.


Event OnCalcKey
OnCalcKey event is activated when the user presses any key.


Event OnChange
OnChange event is triggered when any value of the calculator is changed.


Event OnDisplayChange
The TRxCalculator component makes a simple Calculator dialog box available for your application, provides the four basic math functions (add, subtract, multiply, and divide), plus a few extras like memory, square root, percent, invert, and sign change.

Display the Calculator dialog box by calling the Execute method. The calculation result is stored in the Value property.


Property Memory
Declaration: Memory: Double;

Run-time and read-only. Memory contains the value of the calculator's memory register.


Property Precision
Declaration: Precision: Byte;

Precision determines the precision used in formatting the value in the Calculator display.

Use Precision set the number of digits beyond the decimal point the value should be formatted to before rounding begins.

The default value of Precision is 15 decimal places.

NOTE. Precision must be greater than or equal to 2. Trying to set Precision to a value less than 2 changes the value of Precision to 2.


Property Title
Declaration: Title: string;

The Title property determines the text that appears in the calculator dialog box's title bar.

In other words, the title of the Calculator


Property Value
Declaration: Value: Double;

The Value property is used to retreive calculation results from the Calculator dialog box and to set current value in the calculator's display.

In other words, the value stored on the display.


Index Page | About | Download
Creation Date: 4 Feb 1998 | Last Update: 16 Mar 2000