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

TdxBarWindowItem.KeyDown(Word,TShiftState) Method

Generates an OnKeyDown event.

#Declaration

Delphi
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