Description
Defines a toolbar.
Namespace
xmlns:l="http://www.teradp.com/schemas/GN4/1/Shell/Presentation"
Members
Name | Identifier, e.g. MainToolBar. |
Title | Identifier 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
ShortTitle | Short title |
Band | Band where it appears - in vertically stacked toolbars. |
HorizontalAlignment | Horizontal alignment of the toolbar icons. |
VerticalAlignment | Vertical alignment of the toolbar icons. |
TBBtn | Definition 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>