Sign in Join
FPDoc Onlineexperiment

TCustomTabControl.KeyDown procedure

Member of TCustomTabControlprotectedIn unit ComCtrls

Handles page navigation using the Tab key.

Declaration

pascal
procedure KeyDown(var Key: Word; Shift: TShiftState); override

Arguments

Key

Virtual key code examined in the method.

Shift

Key modifier(s) used in the method.

Description

KeyDown is overridden in TCustomTabControl to handle use of the Tab key ( VK_TAB) to change the active page in the tabbed control.

The Options property must contain the value nboKeyboardTabSwitch to enable the tab switching feature. Pressing Ctrl+Tab switches to the next page by incrementing the PageIndex value. Pressing Ctrl+Shift+Tab switches to the previous page by decrementing the PageIndex value.

If Key is not the VK_TAB virtual key code, the inherited method is called to handle the values in Key and Shift.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.