[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Implements a panel used for buttons and the value display in a calculator form.
Source position: calcform.pas line 45
type TCalculatorPanel = class(TPanel) |
||
protected |
||
procedure ErrorBeep; |
|
|
procedure TextChange; virtual; |
|
Sets the display text for the associated control and signals OnTextChange. |
class procedure WSRegisterClass; override; |
||
public |
||
constructor CreateLayout(); |
|
Initializes and configures the calculator panel using the specified layout. |
procedure CalcKeyPress(); |
|
Locates the button using the specified Key and perform its Click method. |
procedure Copy; |
|
Loads the value in Text into the Clipboard as a text value. |
procedure Paste; |
|
Pastes text from the Clipboard into the text display for the calculator panel. |
function WorkingPrecision; |
|
Gets the minimum number of precision digits allowable for the panel. |
procedure UpdateMemoryLabel; |
|
Updates the Memory indicator to reflect a non-zero value in the Memory property. |
property DisplayValue: Double; [rw] |
|
Contains the Double value representing the Text in the panel. |
property Memory: Double; [rw] |
|
Contains the Double value stored in the memory for the calculator. |
property Precision: Byte; [rw] |
|
Maximum number of digits of precision allowed for the Double value in the calculator. |
property BeepOnError: Boolean; [rw] |
|
Indicates if a beep occurs when an error condition is detected in the calculator panel. |
property Status: TCalculatorState; [rw] |
|
Contains the status or state for the calculator panel. |
property OperatorChar: Char; [rw] |
|
Character representing the last operator entered in the calculator panel. |
property Text: string; [r] |
|
Text representation for the Double value in the calculator. |
property OnOkClick: TNotifyEvent; [rw] |
|
|
property OnCancelClick: TNotifyEvent; [rw] |
|
|
property OnResultClick: TNotifyEvent; [rw] |
|
|
property OnError: TNotifyEvent; [rw] |
|
|
property OnTextChange: TNotifyEvent; [rw] |
|
|
property OnCalcKey: TKeyPressEvent; [rw] |
|
|
property OnDisplayChange: TNotifyEvent; [rw] |
|
|
property Color: TGraphicsColor; |
|
Color for the calculator panel. |
end; |
|
Implements a panel used for buttons and the value display in a calculator form. |
|
| | ||
|
Implements a general purpose container which can hold other components. |
|
| | ||
|
The base class for a general container which can hold other objects. It has a customizable border and a central text. |
|
| | ||
|
The base class for windowed controls which paint themselves. |
|
| | ||
|
Implements a windowed control which can contain other child controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components which have an associated widget. |
|
| | ||
TObject |