TrackingMode Property
Description
Indicates whether the command bars are currently "eating" key strokes. The command bars "eat" keystrokes when a popup or toolbar currently has focus.
Property Type
Read-only property
Syntax (Visual Basic)
Public Property TrackingMode() As Boolean
Remarks
When TrackingMode is True, the command bar will "eat" all key strokes.
A command bar in the menu bar receives focus either when the mouse is used to click on a menu item or when the "Alt" key is pressed. When the command bar has focus, the left/right keys can be used to navigate the menu. The TrackingModeChanged event will occur each time a popup menu is displayed.
A tool bar can receive focus by first clicking the "Expand" button, then using the left/right keys to navigate the tool bar buttons.
Command Bars TrackingMode is similar to get/lost focus. When a command bar receives focus, the TrackingModeChanged event is fired with a pointer to the currently focused FocusedCommandBar, and TrackingMode will be True. When the command bar loses focus, then the TrackingModeChanged is fired with TrackingMode returning False.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.