Root.SetMenu Property
| Explanation | Set your own menu in the menu bar of Biz / Browser. Use XML to define the menu. The hierarchical structure of XML becomes the hierarchical structure of the menu as it is. The MenuSelected event is fired when a menu is selected. If Biz / Browser is running inside Internet Explorer, this method is invalid because the menu is not displayed. Added since Ver.5.0.0 Not supported in Mobile, AI | |
| Call format | //.SetMenu( [ menuXML ] ) | |
| Return value | None | |
| Arguments | XMLDocument menuXML | XmlDocument object that represents the contents of the menu XmlDocument whosecharacter code is Unicode cannot be specified. The following specifications have been added since Ver.5.0.1 If the argument is omitted or null is passed to the argument, the menu is returned to the standard. |
| Exception | None | |
| Example of use | | |
| Related item | MenuSelected event XmlDocument class | |
Menu definition XML format
Menu element
| Element Name | Description | Parent Element | Attributes |
|---|---|---|---|
| menu | Top-level menu element. Specify the items displayed in the menu bar. | root | title、checked、grayed |
| menuitem | It is a menu element. It becomes the parent item of each item of the menu and the submenu. | menu、menuitem | id、title、checked、grayed |
| separator | It is a separator element. Insert a separator line in the menu. | menu、menuitem | none |
Menu attributes
| Attributes Name | Description | Specifiable value |
|---|---|---|
| id | The menu ID . The ID of the selected menu is set in the MenuSelected event. | Integer value (0~65535) |
| title | The title displayed in the menu. | String |
| checked | Whether or not there is a check mark. If set to “true” , a check mark will be displayed on the left side of the menu. | “true” |
| grayed | Specify whether to enable / disable the menu. Setting “true” disables the menu. | “true” |