Intersoft WebDesktop Documentation
Building WebToolBar Structure
See Also Send Feedback
Intersoft WebDesktop > WebMenu > Visual Menu Builder > Working with Visual Menu Builder > Building WebToolBar Structure

Glossary Item Box

Introduction

Building a WebToolBar using Visual Menu Builder is different from building a WebContextMenu or WebMenuBar in terms of usage. Although WebToolBar implements the IBar interface as with WebMenuBar and thus have a visual representation of a bar, you cannot directly add menu items to the bar.

In WebToolBar the Visual Menu Builder is used only for adding menu items to ToolCommand objects whose type is DropDownButton or SplitButton. That said, you first need to add a ToolCommand object to the WebToolBar object and set its type to DropDownbutton or SplitButton. Only then you can add menu items to the ToolCommand object. To add ToolCommands to WebToolBar you can use the WebToolBar Designer which is available in the context menu when you right click a WebToolBar object.

WebToolBar Designer

 

When you open the Visual Menu Builder by right-clicking the WebToolBar and select "Visual Menu Builder" you will be shown the designer as below (the menu items shown here are for example):

Visual Menu Builder showing a menu item's Context Menu

 

More Information

In Visual Menu Builder a WebToolBar object is represented by the menu bar. Clicking on the menu bar will have the property grid show all the properties of the WebToolBar object.

After you create a ToolCommand object with DropDownButton or SplitButton type, you can click on the ToolCommand object to add a menu item. If you click on a menu item, its properties will show up in the property grid and you can change the values from here. As you might have noticed, only a Normal menu item type can have sub menu items or children. To add a sub menu item simply click on the normal menu item and then a type selector will show up and enable you to add a new sub menu item. It is not recommended to add sub menu items using the property grid as the added menu items will not be reflected on the visual representation of the menu items. There are some properties that will be reflected on the visual representation upon changes: Checked, Enabled, Text, Type and ShortCut.

You can also change a menu item's text by clicking the menu item, or double-click if the menu item has not gotten focus (indicated by a solid border). Changing the menu item Text, however, will not change the menu item Name.

After finishing adding/deleting menu items in the WebToolBar object click OK to apply changes to your object, or click Cancel to revert back to the object prior to changes.

See Also

© 2012 Intersoft Solutions Corp. All Rights Reserved.