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

Glossary Item Box

Introduction

Although using Visual Menu Builder to build a WebContextMenu is similar to using it to build the other WebMenu components (WebMenuBar and WebToolBar) there are some significant differences between them. WebContextMenu does not implement the IBar interface and therefore, at runtime, does not have a bar or a visual representation to mark its presence. To see a WebContextMenu you have to right-click on an item that has a context menu in your form.

When you open the Visual Menu Builder by right-clicking the WebContextMenu you will be shown the designer as below:

 Visual Menu Builder showing WebContextMenu

 

More Information

As you can see from the screenshot above, the WebContextMenu object is represented by the "Context Menu" menu item in the MenuBar. Clicking on this menu item will pop a dropdown menu up, and the property grid will show the properties of the WebContextMenu object. In the dropdown menu you can add menu items to the context menu by typing text into the "Type Here" TextBox or simply select a menu type from the menu type selector dropdown.

Clicking on the created menu item will show up its properties 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. However 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 creating or modifying the WebContextMenu 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.