IsToolbarVisible

Verifies that a toolbar in a currently open toolbar collection is visible.

Syntax

Rhino.IsToolbarVisible (strName, strToolbar)

Parameters

strName

Required.  String.  The name of a currently open toolbar collection.

strToolbar

Required.  String.  The name of a toolbar in the collection to verify.

Returns

Boolean

True or false indicating success or failure.

Null

On error.

Example

Dim strFile, strName

strFile = "C:\Program Files\Rhinoceros\System\Default.tb"

strName = Rhino.IsToolbarCollection(strFile)

If Not IsNull(strName) Then

If Rhino.IsToolbarVisible(strName, "Layer") Then

Rhino.Print "The Layer toolbar is visible."

Else

Rhino.Print "The Layer toolbar is not visible."

End If

End If

Also See

HideToolbar

IsToolbar

ShowToolbar

ToolbarCount

ToolbarNames