TrackingModeChanged Event
Description
Occurs when the command bars tracking mode has changed. Tracking mode is similar to get/lost focus for a command bar.
Syntax
Public Event TrackingModeChanged( _
ByVal [CommandBar](XtremeCommandBars~CommandBar.md) As CommandBar, _
ByVal [Mode](#) As Boolean _
)
Parameters
-
CommandBar
Command Bar that currently has focus. -
Mode
Returns True if the CommandBar has received focus.
Returns False if the CommandBar has lost focus.
Remarks
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 CommandBar and Mode will be True. When the command bar loses focus, then the TrackingModeChanged is fired with Mode returning False.
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.
When Mode is True, the command bar will "eat" all key strokes.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.