DocEditToolbarButtons.NewButton

www.altova.com Imprimir este apartado Subir un nivel

Inicio > 

DocEditToolbarButtons.NewButton

Declaración NewButton(nPosition as long, nCommandId as DOCEDCommand)

 

Descripción

Inserts a new Button for the command nCommandId at the position nPosition of the toolbar. nPosition empieza por 1.

See Descripción of DocEditToolbarButton.CommandID for available values of nCommandId

 

Ejemplo

How to add a new toolbar, align it on the bottom and add new toolbar buttons

       

 objPlugIn.ToolbarRows.NewRow 3                // add a new Toolbar (Row 3)

 set ToolbarRow  = objPlugIn.ToolbarRows.Item(3)

 set Buttons        = ToolbarRow.Buttons

 ToolbarRow.Alignment = 2                        // align Toolbar to bottom

 Buttons.NewButton      1, 2                        // add Print Button

 Buttons.NewButton      1, 3                        // add PrintPreview Button

 Buttons.NewSeparator  2                        // add Separator

 Buttons.NewButton      1, 4                        // add Validate Button

 

When StartEditing or ReloadToolbars is called; the modified Toolbar settings are used.

 


© 2019 Altova GmbH