Toolbar Tutorial - Functions


This examples illustrates how you can use various Toolbar Browser function and variables to add functionality to your toolbar.

Here we add two buttons. The first one displays the operating system and version, the second highlights the search text.


<XML id="toolbar">
<TOOLBAR caption="Toolbar Tutorial">
<control type="toolbar">
<button id="home"

    caption=" "
    tooltip=" Home Page"
<dropdown action="Menu(links)"></dropdown>

<control type="combo" id="query" action="Command(search)" width=120></control>
<control type="toolbar">
<button caption="Search" tooltip="Search" image="" action="Command(search)"></button>
<button caption="Back" tooltip="Search Previous" image="" action="SearchBack()"></button>
<button caption="Next" tooltip="Search Next" image="" action="SearchNext()"></button>
<button caption="OS" action="SetText($OS)" tooltip="Display Operating System and Version" image=""></button>
<button style="check" caption="highlight" action="Highlight(%QUERY%)" tooltip="Highlight Search Text" image=""></button>


    <menu id="links">
    <option caption="" action=""></option>
    <option caption="Software" action=""></option>
    <option caption="Music" action=""></option>
    <option caption="Games" action="" image=""></option>


    <command id="search" action="Search('',




  • The first takes advantage of the $OS variable. It uses the SetText() function to write text, in this case the version, to the browser window.
  • The second button takes advantage of the Highlight() Function.