Toolbars

The Toolbars object lets you enumerate all the defined toolbars in your Directory Opus configuration (whether currently turned on or not). It's retrieved using the DOpus.Toolbars method.

 

Property Name

Return Type

Description

<default value>

collection:Toolbar 

Returns a collection of Toolbar objects that you can enumerate.

fdb

string
or
Vector:string

Returns the name(s) of the currently selected File Display Toolbar(s).

If the FDB toolbar is disabled, returns the string !static to indicate a static header.

If there is only one FDB toolbar configured (the usual case), it is returned as a simple string.

If more than one FDB toolbar is configured, a Vector of strings is returned.

You can use DOpus.toolbars.fdb(0) in both JScript and VBScript if you just want the name of the first toolbar without worrying about whether the number of other toolbars (if any). Otherwise, use TypeName(...) in VBScript and typeof in JScript to determine the return type.

viewer

string

Returns the name of the currently selected Viewer Toolbar.