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
  

SetFontSize() Function

Sets the browser font size.

Syntax:

    SetFontSize(size)


Parameters:

    size - The size parameter specifies the font size (0-4).


Remarks:

  • The size parameter can have the values 0,1,2,3 or 4, with 0 being the smallest font size.
  • This function is identical to changing the font size via the Browser's View menu.
  • You can increment or decrement the current font size 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).
  • The SetFontSize() function influences the font size only. It has no impact on graphics. To resize fonts & graphics, use the Zoom() function instead.
  • The SetFontSize() function does not work with style sheets.


Example:


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


    The above code creates a simple toolbar with a zoom in and a zoom out buttons.


Compatibility:

    Requires ToolbarBrowser version 2.2.1 or later.


See Also:

    Zoom()


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