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
  

Zoom() Function

Zooms the current browser window.

Syntax:

    Zoom(factor)


Parameters:

    factor - Specifies the zoom factor.


Remarks:

  • The current screen size is multiplied by the zoom factor parameter. For example, factor of 2 will double the size. 0.5 will half the size.
  • You can increment or decrement the current zoom by prepending the size value with a plus(+) or minus(-) sign. This is ideal for creating a zoom in and zoom out buttons (see example below).


Example:


    <xml id="toolbar">
    <control type="toolbar">
    <button caption="Zoom In" action="Zoom(+0.2"></button>
    <button caption="Zoom Out" action="Zoom(+0.2)"></button>
    </control>
    </xml>


    The above code creates a simple toolbar with a zoom in and a zoom out buttons. Each click of the button increases or decreses the screen magnification by 20%.


Compatibility:

    Requires ToolbarBrowser version 2.2.2 or later.


See Also:

    SetFontSize()


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