Sidebar

reference:scripting_reference:scripting_objects:addbuttonsdata

If a script add-in adds dynamic toolbar buttons via the the OnAddButtons event, the method receives an AddButtonsData object whenever it needs to generate or update the list of buttons.

Property Name Return Type Description

args

Args

Returns an Args object representing the function's parsed arguments.

buttons

AddButtonHelper

Returns an AddButtonHelper object that is used to add buttons.

cmdline

string

Provides the command line being used to generate the buttons.

embedded

string

Provides the embedded function body, if supplied by the user.

lister

Lister

Lister whose toolbar the commands are being added to (0 if not applicable).

viewer

Viewer

Viewer whose toolbar the commands are being added to (0 if not applicable).