Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.

Calculator

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.

Zrck
See Also