Home Features Toolbar Library Forum Download Support Tutorial Manual
3. Reference
Triggers
Controls
Variables
System Variables
Global Values
Functions
AutoFill()
Back()
Beep()
CheckLinks()
Checksum()
Click()
Command()
Customize()
DeleteOption()
Enable()
Execute()
ExportLinks()
Forward()
GetFolderIcon()
GetQuery()
GetSystemIcon()
Header()
Highlight()
HistoryMenu()
Home()
IfExactMatch()
IfMatch()
ImportValue()
ImportCaption()
ImportIntValue()
ImportXMLValue()
Length()
LoadMenu()
Menu()
OpenURL()
Options()
PageText()
PlaySound()
PopupManager()
Refresh()
Replace()
ReplaceAll()
Resize()
ResizeClient()
Redraw()
Save()
Search()
SearchBack()
SearchLast()
SearchNext()
SearchPage()
SetCaption()
SetClipboard()
SetFocus()
SetFontSize()
SetIcon()
SetOption()
SetParam()
SetText()
SetStatusText()
SetTooltip()
SetUserAgent()
SetValue()
Show()
Stop()
StripHTML()
ToolbarMenu()
TruncateOption()
UpdateToolbar()
Zoom()
Text Functions
  

Menu() Function

Displays a Popup menu.


Syntax:

    Menu(id)


Parameters:

    id - Identifier of a popup menu to display.


Remarks:

    The menu id referenced in this function must be defined in the toolbar source. Referer top the Menu Section for more information.

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>
    <option caption="Order" action="http://www.trellian.com/order.htm"></option>
    </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.


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