Guides & Tutorials (beta)

Keep a Toolbar from 'wrapping' to the next row

by Mike Palmatier Visual Basic 6 Created on 10/21/2005  |  Updated on 08/28/2024 0/5 ( 0 votes )

The CommandBars.EnableDocking method is used to apply the xtpFlagHideWrap flag from the XTPToolBarFlags enumeration. This will keep the toolbar from 'wrapping' to the next row. Instead, a special expand button is displayed that indicates to the user that there are more buttons that can not be seen. You simply click on the expand button to display the hidden buttons.

The picture below illustrates a toolbar with hidden buttons.

Toolbar hidden buttons

The picture below shows how the hidden buttons are displayed when the expand button is clicked.

Toolbar expand button

The code below illustrates how to disable toolbar 'wrapping' and allow the toolbar to be docked to any location in the application.

Dim ToolBar As CommandBar

Set ToolBar = CommandBars.Add("Standard", xtpBarTop)
ToolBar.EnableDocking xtpFlagHideWrap Or xtpFlagAny

User Comments

No comments yet, sign in to comment.

Secure Transactions

Online transactions are secure and protected.


Ssl seal 1
This site is protected by Trustwave's Trusted Commerce program
CompliAssure Secured

Money Back Guarantee

If you are not 100% happy with your purchase within 30 days, you can return it for any reason. Your satisfaction is our priority!


Satisfication Guaranteed

Contact sales@codejock.com for more details.