Toolbar Browser
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
 

SUBMENU

The SUBMENU tag is used within the MENU block to create submenus.

Syntax:

    <SUBMENU caption="text">

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

    </SUBMENU>


Parameters:

    caption - Submenu caption


Remarks:

  • Just like the MENU tag, the SUBMENU block encapsulates any number of menu items, separators and popup sub-menus. These are defined by the OPTION, SEPARATOR and SUBMENU tags.


Example:

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

    <menudefinitions>
    <menu id="mymenu">
    <submenu caption="Popup">
    <option caption="Home Page" action="http://www.trellian.com"></option>
    <option caption="Order" action="http://www.trellian.com/order.htm"></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 a single popup menu with two menu items.


See Also: