Using the Process Analyst > Process Analyst for Developers > Automation Model > IToolbar.Visible [Property][Get/Set]

IToolbar.Visible [Property][Get/Set]

Gets and Sets this Toolbars Visible state.

Defined As

Execution Result

If the property get succeeds, the return value will be Success. If the return variable is bad, the return value will be InvalidArgument.

Limits

Remarks

If the toolbar is not visible, buttons tied to it will not appear. Only the main toolbar can be hidden. Setting the new toolbar to invisible will result in a GeneralFailure.

Calling Syntax

This example assumes there is a valid Toolbar object as retrieved from a Process Analyst's Toolbars collection. (for example, VBA: ProcessAnalyst.Toolbars.Item(1))

[VBA]

Sub Example(Toolbar As Object)
Dim visible As Boolean
`Getting Property value
visible = Command.Visible
`Setting Property value
Command.Visible = False
End Sub

[Cicode]

FUNCTION Example(OBJECT hToolbar)
// Getting property value
INT nVisible = _ObjectGetProperty(hToolbar, "Visible");
// Setting property value
_ObjectSetProperty(hToolbar, "Visible", 0);
END