Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Is there a way to add a menu to the existing "File" menu in a module?
Topic Summary: without modifying formal.dxl
Created On: 23-Dec-2008 18:35
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 23-Dec-2008 18:35
User is offline View Users Profile Print this message


David Ofstead

Posts: 3
Joined: 9-Oct-2008

Is there a way to add a menu to the existing "File" menu in a module without modifying formal.dxl?

I tried:
createMenu(alwaysOn, "File", 'F', null);

createItem(alwaysOn, "my menu", 'C', null, modKeyCtrl, null, null ,null, null, "null")

but this only resulted in a second "File" menu. How do I add menus to the existing "File" menu?

Thanks,
Dave
Report this to a Moderator Report this to a Moderator
 26-Dec-2008 19:23
User is offline View Users Profile Print this message


David Jakad

Posts: 94
Joined: 20-Jul-2007

I don't think you can, or at least not very easily.

You can add entire sets of menu options to the menu toolbar, using the -a and -J command line switches. This will add menu options on the main menu toolbar, just before "Help" menu. For example:

File, Edit, View, Link, Analysis, Table, Tools, Ofstead, Cool DXL, Help

-a will add menus to the main DOORS window.
-J will add menus to all Module windows.

When you launch DOORS (via a Windows shortcut or Windows batch file), you can just add these switches, point them to your directory of DXL files, and the new menus will be added.

In the "Using DOORS" manual, see page 378 (Using the command line) for more description of these command line switches.

In the "DXL Reference Manual", see page 597 (DOORS Window Control) for more description on setting up a directory of DXL files and using the .hlp and .idx files.

This method is easiest when adding your own personal menu options. If you are an administrator, and want to add menu options for all users, you can still use this method, but you'll have to put the DXL files on an accessible server, and update everyone's shortcut and/or startup batch file.

An alternative method, I believe, is to just add your DXL files in the DOORS installation tree at: DOORS/bin/dxl/addins/
Report this to a Moderator Report this to a Moderator
 15-Jan-2009 05:46
User is offline View Users Profile Print this message


Ashish Shrivastava

Posts: 4
Joined: 1-Apr-2008

I think it can be done by modifying "void createFileMenu()" function in baseWindowMenu.inc file.

Just add the item you want to add in the file menu, no need to create another file menu.
Hope this works
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.