Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

Keyboard & Mouse Interface

Tabs in a tab control can be activated using the left mouse button. By clicking on a currently inactive tab, that tab will become the active tab. This takes place under program control. The application receives a TabClicked, Switching and Switched event. The TabClicked or Switching events allow an application to prevent the change to the new current tab.

Tabs can also be made active using the keyboard. Just as regular Windows controls (such as buttons) respond to an Alt + key combination, the tab control responds to keyboard accelerators, if any one of the tab labels has been defined to support this. When defining tab text, the & character indicates that the following character is to be recognized by an Alt + key combination, e.g., the tab with the tab label "&First" will be made active when the user presses Alt-F. The & character will never be shown. The following character will be underlined instead (depending on the AlwaysShowAccel property setting). If a new tab becomes the new current tab, the application receives a Switching and Switched event. The Switching event allows an application to prevent the change to the new current tab.

Control + arrow key combinations can be used to scroll in a scrollable tab control. For Control + arrow key combinations to have an effect, the tab control must be the active control, i.e., the control which currently has the input focus.

If the tab control has the input focus, the arrow keys can be used to make the tab in the given direction the new current tab. The Home key will make the first tab the new current tab. The End key will make the last tab the new current tab.


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.