Skip to main content

TcxCustomCalculator.GetButtonKindKey(Word,TShiftState) Method

Determines the calculator button type by the pressed key.

Declaration

function GetButtonKindKey(Key: Word; Shift: TShiftState): TcxCalcButtonKind;

Parameters

Name Type
Key Word
Shift TShiftState

Returns

Type
TcxCalcButtonKind

Remarks

The GetButtonKindKey method determines the button type based on the pressed key. This method is used internally when a user presses a keyboard key. The Key parameter is a keyboard key. If a non-alphanumeric key was pressed, the Key parameter defines a virtual key code. The Shift parameter indicates whether the Shift, Alt, or Ctrl key is combined with a keystroke.

See Also