Skip to main content

TdxBarWindowItem.KeyDown(Word,TShiftState) Method

Generates an OnKeyDown event.

Declaration

procedure KeyDown(var Key: Word; Shift: TShiftState); dynamic;

Parameters

Name Type
Key Word
Shift TShiftState

Remarks

This procedure is called when pressing a key in the window of a linked item control. KeyDown is called when pressing any key, including Shift, Alt, Ctrl and function keys.

For the TdxBarWindowItem class, KeyDown calls the OnKeyDown event. Descendants can override KeyDown to provide other responses in addition to this event-handler call. The Key parameter specifies the pressed key on the keyboard. If you assign 0 to Key, all further key processing is canceled.

See Also