ToolBarList class

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 16:37

Description

Defines a list of toolbars.

Namespace

xmlns:l="http://www.teradp.com/schemas/GN4/1/Shell/Presentation"

Members

xmlnsNamespaces.
ShellToolbarDefines a toolbar.

Example

 <ToolBarList

       xmlns:fredWinUI="clr-namespace:TeraDP.GN4.Editorial.WinUI;assembly=FredWinUI"

       xmlns:tedWinUI="clr-namespace:TeraDP.GN4.Editorial.WinUI;assembly=TedWinUI">

 

        <l:ShellToolBar Title="Main" ShortTitle="Main" Name="MainToolbar" Band="0" BandIndex ="0" HorizontalAlignment="Left" VerticalAlignment="Top">

          <l:TBBtn CommandParameter="OpenNavigator" ToolTip="Open Navigator" Icon="#FILEOPEN.gif"/>

          <l:TBBtn CommandParameter="DataSave" ToolTip="Save Changes" Icon="#FILESAVE.gif"/>

....

        </l:ShellToolBar>

        <l:ShellToolBar Title="Toolbox" ShortTitle="Toolbox" Name="MainToolbox" Band="1" BandIndex ="0" HorizontalAlignment="Left" VerticalAlignment="Top">

....

        </l:ShellToolBar>

....

      </ToolBarList>

Remarks

The ToolBarList section within the Menuset section of the GN4ShellMenus section  of the *_TABITEMS.XML file contains one or more lines such as Toolbar that define the standard toolbars.

A single toolbar section defines primarily the toolbar name and the displacement (band: 0=top, 1=left, 2=right, 3=bottom). Every icon is defined with the <Button...> statement, that has 24px height and 24px width, and links to a GN4 script within CommandParameter (the scripts themselves are defines in add-ins). Moreover, for each Button, there's a 16x16 pixels icon image, pointing to the appropriate predefined GIF file. Icons in a toolbar can be separated by a <Separator/> statement.

See also

TBBtn, PanelToolBar