Where a toolbar gets displayed?

Build 1501 on 14/Nov/2017  This topic last edited on: 6/Sep/2016, at 13:33

GN4 defines in two places where a toolbar gets displayed:

In the caller script

The caller script specifies the docking zone, that can be Top, Left, Right or Bottom.

   <ShellCommand(CanExecute:="Ena_IsWindowActive", IsChecked:="Chk_IsArticleFramesToolBarChecked")> _

  Public Sub ToggleArticleFramesToolBar()

     Main.ToggleToolBar(MainToolBar.ArticleFrames, "Main", "Bottom", ToggleAction.Toggle)

  End Sub

Make sure that all the toggle scripts, including ones that show/hide all toolbars, point to the same zone, otherwise, toolbar may appear once here, once there.

In the toolbar definition

The caller script defines only the zone, but not the order in which multiple toolbars that appear in the same zone, get stacked. This is to be done in the toolbar definition, by means of Band and BandIndex properties.

If Band property is not specified for a given toolbar, it is considered to be Band="0".

If more toolbars share the same band, they'll appear (from left to right) in the order of the BandIndex property.