Viewer.OnToolbarCustomized Event (Visio Viewer)

Occurs when the user customizes the Microsoft Visio Viewer toolbar by adding or removing buttons.

Syntax

expression. OnToolbarCustomized

_expression_An expression that returns a Viewer object.

Return Value

Nothing

Remarks

You can customize the toolbar in Visio Viewer by adding or removing buttons. To do so in the user interface, right-click in the toolbar area, and then click Customize.

You can customize the toolbar programmatically by using the ToolbarButtons property. For the toolbar to be customizable, the ToolbarCustomizable property must be set to its default value, True.

Example

The following code shows how to use the OnToolbarCustomized event to display a message in the Immediate window when the user customizes the toolbar in Visio Viewer.

Private Sub vsoViewer_OnToolbarCustomized()

   Debug.Print "The toolbar has been customized!"

End Sub