Sign in Join
FPDoc Onlineexperiment

CalcForm unit

Contains classes and types used in TCalculatorForm.

calcform.pas contains classes and types used in TCalculatorForm, a dialog form used to display a calculator. It is part of the Lazarus Component Library ( LCL).

Classes and records

TCalculatorFormclassImplements the form used to display a calculator for a TCalculatorDialog instance.
TCalculatorPanelclassImplements a panel used for buttons and the value display in a calculator form.

Procedures and functions

CreateCalculatorFormfunctionCreates, configures, and returns a new TCalculatorForm instance.

Types

TCalculatorCalcKeyEventprocedure typeSpecifies an event handler signalled for Key events occurring in TCalculatorForm.
TCalculatorDispChangeEventprocedure typeSpecifies an event handler signalled when the display in TCalculatorForm is changed.
TCalculatorLayoutenumerationRepresents layouts used for panels on a TCalculatorForm instance.
TCalculatorStateenumerationRepresents status values used in TCalculatorPanel.

Constants

CalcDefPrecisionconstantDefines the default number of digits of precision used for values in TCalculatorForm.

Variables

cCalculatorFontNamevariableFont name used for buttons and text displays in a calculator.
cCalculatorFontSizevariableFont size used for buttons and text displays in a calculator.
cCalculatorFontStylevariableFont style used for buttons and text displays in a calculator.
cColorBtnCancelvariableColor for the Cancel button in a calculator.
cColorBtnClearvariableColor for the Clear button in a calculator.
cColorBtnDigitsvariableColor for the numeric digit buttons in a calculator.
cColorBtnMemoryvariableColor for the Memory button in a calculator.
cColorBtnOkvariableColor for the OK button in a calculator.
cColorBtnOthersvariableColor for miscellaneous "other" buttons in a calculator.
cColorDisplayBackvariableColor for the background of the display area in a calculator.
cColorDisplayTextvariableColor for text on the display area for a calculator.

Uses

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.