ActiveBar allows you to easily design toolbars to your specification through a variety of properties and methods using the ActiveBar Band object.
In addition to setting these properties in the ActiveBar designer, you can drag the toolbar to the desired location on the form.
The GrabHandleStyle property enables and disables the GrabHandle, and sets one of the eight different GrabHandle styles.
ActiveBar's DisplayMoreTools button behaves similarly to the Microsoft Office 2000 DisplayMoreTools button. When clicked, the drop-down list displays the Add and Remove Button for quick toolbar customization. If no tools display in the band, an indicator appears in the band to let the user know more tools are available if they increase the width of the form. Be aware that this button will not appear on the band unless the DisplayMoreToolsButton property to True.
The MouseTracking property specifies how a tool looks when the mouse hovers over it. When set to Bevel, ActiveBar emulates the Bevel state of Microsoft Office applications. When set to Color, a tool image appears unavailable until the mouse pointer moves over the tool. The ActiveBar Color state renders identically to that of Internet Explorer. In addition, each tool can have an image that changes depending on one of four states, Normal, Pressed, Hover, and Disabled. To match tool images with tool states just create or load a different image for each state.
When setting the WrapTools property to True, tools will wrap on the toolbar if the form width is smaller than the toolbar width.
The Flag property allows you to add to or remove specific toolbar functionality from your bands.
You can check or uncheck one of the Docking flags to set a toolbar to dock to the top, bottom, left, or right side of a form. The default setting is Top. You can also set the Flag property to Float to create a Floating Toolbar. When floating, the toolbar defaults to the top left (0, 0) of the screen unless you specify different Left and Top values.
The Customize flag specifies whether the user can customize the tools that populate a toolbar. Customization options include removing the tool from the toolbar or moving the tool to a different toolbar. The Hide flag indicates whether a toolbar becomes invisible either by clearing the toolbar selection on the system context menu or clicking the Close button on the toolbar.
Setting the Sizer, Stretch and Close flags adds extended functionality to your toolbars.
Choosing from one of the five following levels allows you to limit or broaden the amount of access your users have to application customization.
Note: Clearing the selection for these flags prevents the DisplayMoreTool button from displaying.
Note: Clearing the selection for the Hide flag removes the band from the System Customize menu and the Toolbars tab in the Customize dialog.
If Band.Name = "SysCustomize" Then ' Stops system customize menu from being displayed. Cancel = True End If
Private Sub ActiveBar31_CustomizeBegin() ' Start user customization. ActiveBar31.Customize ddCTCustomizeStart customizeForm.Show End Sub
| See Also |
Microsoft Office 2000 and Office XP Look and Feel | Microsoft Office 2003 and Visual Studio 2005 Look and Feel | GDI+ Support | Creating a Toolbar
Copyright © 2006 Data Dynamics, Ltd. All Rights Reserved.