Skip to main content

TdxBarWindowItem.KeyPress(Char) Method

Generates an OnKeyPress event.

Declaration

procedure KeyPress(var Key: Char); dynamic;

Parameters

Name Type
Key Char

Remarks

The KeyPress method is called in response to a key-press message (WM_CHAR) from Windows. The KeyPress method does nothing except call the OnKeyPress event handler. Descendants override KeyPress to provide other responses in addition to this event-handler call. Both the KeyPress and OnKeyPress event handlers can suppress further key processing by setting the Key parameter to 0.

See Also