[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TCalculatorForm - a normal form with a built-in calculator
Source position: extdlgs.pas line 181
type TCalculatorForm = class(TForm) |
||
protected |
||
class procedure WSRegisterClass; override; |
|
Registers this component class with the current WidgetSet. |
procedure OkClick(); |
|
OkClick - method to handle a click on th eOK button |
procedure CancelClick(); |
|
CancelClick - method to handle a click on the Cancel button |
procedure CalcKey(); |
|
CalcKey - method to handle activation of the specified calculator key |
procedure DisplayChange(); |
|
DisplayChange - method for handling a change in the calculator display |
procedure InitForm(); virtual; |
|
InitForm - initialise the form, using the specified calculator layout |
|
The MainPanel of the Form, which can contain any sort of LCL components |
|
|
The CalcPanel which displays the calculator |
|
property DisplayPanel: TPanel; [r] |
|
The DisplayPanel within the calculator panel, that holds the numeric display |
property DisplayLabel: TLabel; [r] |
|
The DisplayLabel for the calculator display |
public |
||
constructor Create(); override; |
|
Create - constructor for the whole form, not just the calculator |
property Value: Double; [rw] |
|
Value - the numeric value, the result of the calculation, to be returned to the main program |
end; |
|
TCalculatorForm - a normal form with a built-in calculator |
|
| | ||
| | ||
|
The base type for TForm. |
|
| | ||
|
Class of a windowed control with incorporated scroll bars. |
|
| | ||
|
The base class for windowed controls which paint themselves. |
|
| | ||
|
The base class for controls which can contain other (child) controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components associated with widgets. |
|
| | ||
TComponent |
||
? | ||
TObject |
TCalculatorForm - a normal form with a built-in calculator
There is a MainPanel in which the standard LCL widgets can be placed, and a CalcPanel which displays a calculator which has the functionality of a TCalculatorDialog but remains permanently displayed