GN4ShellMenus class

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

Description

The GN4ShellMenus section  of the *_TABITEMS.XML file contains one or more Menuset sections, that contain definitions of drop-down menus, context menus, keyboard and mouse shortcuts, toolbars.

This section has the same structure but different content in each GN4 application.

Open the file in an XML enabled editor (Visual Studio Express will be fine) and then locate the GN4ShellMenus section. On the following screenshot, we opened FRED4_TABITEMS.XML.

Collapse all items (for Visual Studio Express: Edit > Outlining > Toggle All Outlining), and then expand first GN4ShellConfiguration and then expand GN4ShellMenus: this shows all Menusets:

gn4menu2

As you can see on the figure above, there are multiple menus for a given GN4 application. A menu is defined within Menuset sections. Each Menuset section contains a Menu section (that's where you define the main menu bar), and one or more optionals ContextMenu sections (that's where you define context menus).

Note: don't get confused by the fact that menus for Ted4, Fred4, Shell and EdAdmin4 all use the same node name "GN4ShellMenus". That's because all use them same basic mechanism to display menus. You can distinguish menus by the parent file (if menus are in FRED4_TABITEMS.XML, they are Fred4 menus).

Members

MenusetNamespace define XML statements prefixes, used in the file, e.g. <l:, <xp: etc.