Altova XMLSpy 2025 Enterprise Edition 

Method: GetToolbarButtonState (ButtonIdentifier as string) as AuthenticToolbarButtonState

 

Return Value

The method returns AuthenticToolbarButtonState

 

Description

Get/SetToolbarButtonState queries the status of a toolbar button, and lets the user disable or enable the button, identified via its button identifier (see list above). One usage is to disable toolbar buttons permanently. Another usage is to put SetToolbarButtonState in the OnSelectionChanged event handler, as toolbar buttons are updated regularly when the selection changes in the document.

 

Toolbar button states are given by the listed enumerations.

 

The default state means that the enable/disable of the button is governed by AuthenticView. When the user sets the button state to enable or disable, the button remains in that state as long as the user does not change it.

 

Errors

2000

Invalid object.

2005

Invalid parameter.

2008

Internal error.

2014

Invalid button identifier.

 

© 2018-2024 Altova GmbH