Skip to content

DockToolBar Method

Description

Docks a toolbar to the specified command bar.

Syntax

Public Sub DockToolBar( _
    ByVal ToolBar As CommandBar, _
    ByVal x As Long, _
    ByVal y As Long, _
    ByVal Position As XTPBarPosition _
)

Parameters

  • ToolBar
    The toolbar to be docked.

  • x
    The x-coordinate where the toolbar should be docked.

  • y
    The y-coordinate where the toolbar should be docked.

  • Position
    The initial position of the toolbar. Possible values include:

Value Description
xtpBarTop The bar is docked to the top edge of the form.
xtpBarBottom The bar is docked to the bottom edge of the form.
xtpBarLeft The bar is docked to the left edge of the form.
xtpBarRight The bar is docked to the right edge of the form.
xtpBarFloating The bar is a floating command bar.
xtpBarPopup Not used for dialog bar.
xtpBarListBox Not used for dialog bar.
xtpBarComboBoxGalleryPopup The command bar will be displayed as a gallery.

See Also


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