Home Features Toolbar Library Forum Download Support Tutorial Manual
3. Reference
Triggers
Controls
TOOLBAR
CONTROL
BUTTON
MENU
SUBMENU
OPTION
SEPARATOR
COMMAND
COMMANDS
MENUDEFINITIONS
UNINSTALL
Common Parameters
TIMER
Variables
System Variables
Global Values
Functions
Text Functions
  

MENU

The MENU tag defines a popup menu. The menu is created with the Menu() Function.


Syntax:

    <MENU id="menu_id">

      <option></option>
      <option></option>
      <separator></separator>
      ...
      <submenu>...</submenu>

    </MENU>


Parameters:

    id - A unique menu identifier.


Remarks:

  • The MENU block encapsulates any number of menu items and separators. These are defined by the OPTION and SEPARATOR tags.
  • The SUBMENU tag is used to create nested menus.


Example:

    <XML id="toolbar">
    <toolbar caption="Menu Example">
    <control type="toolbar">
    <button caption="Open Menu" style=dropdown action="Menu(mymenu)"></button>
    </control>

    <menudefinitions>
    <menu id="mymenu">
    <option caption="Home Page" action="http://www.trellian.com"></option>
    <separator></separator>
    <option caption="Order" action="http://www.trellian.com/order.htm"></option>
    <submenu>
    <option caption="Submenu Item 1"></option>
    <option caption="Submenu Item 2"></option>
    </submenu>
    </menu>

    <menudefinitions>
    </toolbar>
    </XML>




In this example a toolbar with a single button is created. When clicked, the Menu() functions displays a popup menu with the id mymenu.
The popup menu to be displayed is defined in the menudefinitions block. It includes two items, a separator and a sub-menu.


See Also:

    Menu() Function | MENUDEFINITIONS tag | OPTION tag | SEPARATOR tag | SUBMENU tag


Website Popularity Rank | Build Your Own Toolbar | Free Download | Custom Toolbars | Features | Contact Us

ToolbarBrowser is a freeware project supported by Trellian Limited. | Privacy Policy