Skip to content

FocusedCommandBar Property

Description

Returns the command bar that currently has focus.

Property Type

Read-only property

Syntax (Visual Basic)

Public Property FocusedCommandBar() As [CommandBar](XtremeCommandBars~CommandBar.md)

Remarks

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, the TrackingModeChanged event is fired with TrackingMode returning False.

When TrackingMode is True, the command bar will "eat" all keystrokes.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.