How to create a submenu with DXL
I'm trying to create a menu structure in a formal Module in DOORS 9.7 (Classic) by using DXL.
I have created a .inc file "Menu.inc", that I have placed in the ..\lib\dxl\config\formalfiles directory.
It looks like this:
It looks like this:
createMenu(alwaysOn, "Top Menu", null, null)
createMenu(alwaysOn, "Sub_Menu_IDX", null, "path to dxl directory")
//This DXL directory contains a .hlp and a .idx file
//This DXL directory contains a .hlp and a .idx file
createMenu(menuMapping, "Sub_Menu_DXL", null, "path to dxl file")
//How this DXL file looks is shown below
createItem(itemMapping,
"Create Module",
null,
null,
modKeyCtrl,
null,
null,
"Create module",
"",
"path to dxl file")
end menu
The mapping function used in the 3:d createMenu is defined in a .inc file located in ..\lib\dxl\startupfiles.
It looks like this:
int itemMapping()
{
return (menuAvailable_)
}
The DXL file containing the Submenu looks like this:
createItem(alwaysOn,
"SUB",
null,
null,
modKeyCtrl,
null,
null,
"Create module",
"",
strMainPath "C:\DOORS_OEW\DoorsHome\lib\dxl\addins\DoorStep Menus\createModule.dxl")
This will generate the menu "Top Menu" in the formal module.
When clicking on the "Top Menu" the following menu choices appear:
- Sub_Menu_IDX
- Create Module
I.e, the menu "Sub_Menu_DXL" does NOT appear as a submenu.
What am I doing wrong here?