The main tab menu bar section defines the menu bar of the main tab for the given object.
Create the main tab menu bar section in the in xxx_TabItems.xml file (where xxx may be Ted4, Fred4, Shell4 or Edadmin4). See Which configuration file? for help about choosing the right configuration file.
The text in blue is free text, but referenced elsewhere, which means you can follow the specified naming indications, or you can specify what you want, but be coherent.
In this example, we're showing the main tab menu bar for the contact object. If you would be setting up a main tab for another object, the object name and some descriptive strings will be different.
<Menuset Name="Contacts"> <Menu xmlns:l="http://www.teradp.com/schemas/GN4/1/Shell/Presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <l:ShellMenuItem Header="_Contacts"> <l:ShellMenuItem Header="New Contact" CommandParameter="NewContact"/> <Separator/> <l:ShellMenuItem Header="_Send"> <l:ShellMenuItem Header="_Forward..." CommandParameter="ExecuteWorkflowOnObjects" Parameters="wf=continuecopyflow&Pars=type:sendOn;" /> <l:ShellMenuItem Header="_Back..." CommandParameter="ExecuteWorkflowOnObjects" Parameters="wf=continuecopyflow&Pars=type:sendBack;" /> </l:ShellMenuItem> <Separator/> <l:ShellMenuItem Header="_Close" CommandParameter="CloseTab"/> </l:ShellMenuItem> <l:ShellMenuItem Header="_Edit"> <l:ShellMenuItem Header="Edit" CommandParameter="EditObject"/> </l:ShellMenuItem> <l:ShellMenuItem Header="_Searches"> <l:ShellMenuItem Header="Toggle Navigator" CommandParameter="ToggleNavigator"/> </l:ShellMenuItem> <l:ShellMenuItem Header="Window"> <l:ShellMenuItem Header="Workspace Manager" CommandParameter="ShowDesktopManager"/> <l:ShellMenuItem Header="Save Workspace" CommandParameter="SaveDesktop"/> <l:ShellMenuItem Header="Load Workspace" CommandParameter="LoadDesktop"/> <l:ShellMenuItem Header="Navigator" CommandParameter="ToggleNavigator"/> <l:ShellMenuItem Header="Script Editor" IsCheckable="True" CommandParameter="ToggleScript"/> </l:ShellMenuItem> <l:ShellMenuItem Header="_Help"> <l:ShellMenuItem Header="Help" CommandParameter="Help"/> <Separator/> <l:ShellMenuItem Header="Contents" CommandParameter="NotImplemented"/> <l:ShellMenuItem Header="Add In Manager" Command="{x:Static l:Commands.Ide}" CommandParameter="ShowAddInManager"> <l:ShellMenuItem.ToolTip>Display the add in manager dialog box</l:ShellMenuItem.ToolTip> </l:ShellMenuItem> <l:ShellMenuItem Header="Connection Manager" Command="{x:Static l:Commands.Ide}" CommandParameter="ShowConnectionManager"/> <l:ShellMenuItem Header="Show Connection" Command="{x:Static l:Commands.Ide}" CommandParameter="ShowConnection"/> <Separator/> <l:ShellMenuItem Header="Configuration Details" Command="{x:Static l:Commands.Ide}" CommandParameter="ShowWPFData"/> <l:ShellMenuItem Header="Last Exception Details" CommandParameter="ShowLastException"/> <Separator/> <l:ShellMenuItem Header="_About" CommandParameter="About"/> </l:ShellMenuItem> </Menu> </Menuset> |