Back to Devexpress

BtnCaptions Constant

vcl-cxcalc-79c82323.md

latest1.2 KB
Original Source

BtnCaptions Constant

Describes the captions displayed on the calculator buttons.

Declaration

delphi
const BtnCaptions: array[cbBack..cbEqual] of string = ('Back', 'CE', 'C', 'MC', 'MR', 'MS', 'M+', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+/-', ',', '/', '*', '-', '+', 'sqrt', '%', '1/x', '=');

Returns

Type
array[cbBack..cbEqual] of string

Remarks

The TcxCustomCalculator control uses the BtnCaptions constant to get the caption displayed on a specific calculator button.

To access a specific button caption, you can use its index in the BtnCaptions array. All available button indexes and types are enumerated in the TcxCalcButtonKind type description.

The following code snippet demonstrates how to localize the ‘Back’ button’s caption.

delphi
Zrck
cpp
Zrck"

See Also

cxCalc Unit