In the system configuration the Administrator defines which toolbars are automatically displayed when a GN4 application runs for the first time.
This is achieved, on the very basic level, by changing the OnInitialize methods in the related system add-in: Protected Overrides Sub OnInitialize(ByVal isStartUp As Boolean) in Fred.vb, Ted.vb, Shell.vb and - if uncommented - in CustomFred.vb, CustomTed.vb, CustomShell.vb. Look at the code to find out what it does.
The position of toolbars is defined partially in the Fred4_Tabitems.xml, Ted4_Tabitems.xml, Shell4_Tabitems.xml, and partially in the system add-ins.
The sequence of displaying default toolbars in Fred4
In the OnInitialize method (Protected Overrides Sub OnInitialize(ByVal isStartUp As Boolean)) in Fred.vb, on startup and only if no workspace is loaded by default, the Pages main tab gets opened and ShowDefToolbarsPages runs. The ShowDefToolbarsPages defines explicitly which toolbars appear in the top, left and bottom dock bar. The internal row of a toolbar within the dock bar is defined by the Band="0", Band="1" and so on in the toolbars definition in the FRED4_TABITEMS.XML. The internal column of a toolbar is defined by the BandIndex="0", BandIndex="1" in the toolbars definition in the FRED4_TABITEMS.XML.
Displaying all toolbar on request
You may want to re-display all default toolbar after you hid them by Window > Toolbars > Hide All. Use Window > Toolbars > Show All to show all defined toolbars, or Window > Toolbars > Show Default to show only the default toolbars and not all defined.
The Public Overridable Sub ShowAllToolBars() script in SHELL.VB shows all toolbars for the current main tab (using tab.Name). Actually it is implemented only for Fred4Pages and Ted4Articles, but more definitions can be easily added in the CUSTOMSHELL.VB.
Hiding all toolbars on request
The Public Overridable Sub HideAllToolBars() script in SHELL.VB hides all toolbars. Actually it is implemented for 20 toolbars, but more definitions can be easily added in the CUSTOMSHELL.VB.
Displaying default toolbars on request
The ShowDefToolbarsPages script handles this on the Pages main tab. The ShowDefToolbarsEditions script handles this on the Editions main tab. The ShowDefToolbarsTracking script handles this on the Tracking main tab.