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
  

Enable() Function

Enables/Disables a Toolbar Button.

Syntax:

    Enable(id,enable)


Parameters:

    id - id of button to enable.
    enable - button if enabled if 1, disabled if 0


Remarks:

  • Currently this function only works with toolbar buttons. Other toolbar controls can not be enabled or disabled.

    Example:

      In this example click the Enable and Disable buttons to toggle the enabled status of the Test button. button.


      <xml id="toolbar">
      <control type="toolbar">
      <button caption="Enable" action="Enable(test,1)"></button>
      <button caption="Disable" action="Enable(test,0)"></button>
      <separator></separator>
      <button id=test caption="Test Button"></button>
      </control>



    See Also:

      Show()


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