ShellToolBar class

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

Description

Defines a toolbar.

Namespace

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

Members

NameIdentifier, e.g. MainToolBar.        
TitleIdentifier that appears in the add-in script, e.g. if the toolbar Title is Alignment, it appears as a property of the MainToolbar.

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

  Public Sub ToggleAlignmentToolBar()

    Main.ToggleToolBar(MainToolBar.Alignment, "Main", "Top", ToggleAction.Toggle)

  End Sub

ShortTitleShort title
BandBand where it appears - in vertically stacked toolbars.
HorizontalAlignmentHorizontal alignment of the toolbar icons.
VerticalAlignmentVertical alignment of the toolbar icons.
TBBtnDefinition of a button in a toolbar, optional tooltip and link to the icon and command.

Example

<l:ShellToolBar 

 Name="Article" 

 Title="Article" 

 ShortTitle="Article" 

 Band="0" 

 HorizontalAlignment="Left" 

 VerticalAlignment="Top">

 <l:TBBtn CommandParameter="ArticleAddEditHead" ToolTip="Add headline to article - hold CTRL to add webhead, or CTRL+SHIFT to add jumphead" Icon="#U007.gif"/>

 <l:TBBtn CommandParameter="ArticleAddEditKicker" ToolTip="Add kicker to article" Icon="#U001.gif"/>

 <l:TBBtn CommandParameter="ArticleAddEditSubhead" ToolTip="Add subhead to article" Icon="#U008.gif"/>

 <l:TBBtn CommandParameter="ArticleAddEditIntro" ToolTip="Add intro to article" Icon="#U006.gif"/>

 <l:TBBtn CommandParameter="ArticleAddEditStreamer" ToolTip="Add pullquote to article" Icon="#U009.gif"/>

 <l:TBBtn CommandParameter="ArticleAddEditPhoto" ToolTip="Add photo to article" Icon="#U011.gif"/>

 <l:TBBtn CommandParameter="ArticleAddEditBlogPost" ToolTip="Add blogpost to article" Icon="#office0320.gif"/>

 <l:TBBtn CommandParameter="MenuAddOtherElts" ToolTip="List other elements" Icon="#OFFICE0770.gif"/>

</l:ShellToolBar>