How can I add menus to the formal module menu bar? I have a couple folders in the addins folder that contain some custom DXL scripts. Initially, I got these menus to show up in formal modules by listing them in the addins.idx file:
Admin_DXL _ _ Admin DXL
User_DXL _ _ User DXL
where the "Admin_DXL" is the folder name, and "Admin DXL" is the name of the dropdown menu.
It no longer seems to matter what text is placed in the .idx file within the addins directory.
Some of the folders in the addins folder show up on the menu bar without being called out in the .idx file and some don't. All of the .dxl script file contain the necessary single line comment and comment block at the top of each file. No matter what changes I make to the .idx file, the same menus show up in the formal module when I re-start the DOORS client.
Thanks in advance for any responses.
Grant
zz00rq - Thu Dec 03 10:28:02 EST 2009 |
|
Re: Changes in the .idx file are not reflected in the drop down menus doors36677 - Thu Dec 03 12:32:01 EST 2009
Does every folder have a .hlp and .idx with same prefix as the folder name.
|
|
Re: Changes in the .idx file are not reflected in the drop down menus Mathias Mamsch - Sun Dec 06 06:29:15 EST 2009 doors36677 - Thu Dec 03 12:32:01 EST 2009
Does every folder have a .hlp and .idx with same prefix as the folder name.
The index file is just for "renaming" items, I think you cannot control with the idx file wheter an item shows up or not. So if you leave out an item in the index file it will usually show up with the name of the dxl file in the menu name.
BUT:
A file will only show up in the menu if it has two comments at the beginning of the file and it has the .dxl file ending. So if you don't want a file to show up in the menu you can just remove the comments at file start.
Regards, Mathias
|
|
Re: Changes in the .idx file are not reflected in the drop down menus doors36677 - Sun Dec 06 08:45:30 EST 2009 Mathias Mamsch - Sun Dec 06 06:29:15 EST 2009
The index file is just for "renaming" items, I think you cannot control with the idx file wheter an item shows up or not. So if you leave out an item in the index file it will usually show up with the name of the dxl file in the menu name.
BUT:
A file will only show up in the menu if it has two comments at the beginning of the file and it has the .dxl file ending. So if you don't want a file to show up in the menu you can just remove the comments at file start.
Regards, Mathias
Mathias
You are partially right -- the idx files don't have to be there but if you carefully read the initial poster questions. The poster question is about folder not individual dxl files. The poster explicitly stated that the dxl files have the necessary comment statements.
So probably the problem is either:
--A idx formatting problem or
--Poster needs the .hlp files (and if poster is editing the .idx files -- there is an implication that he needs the .idx files)
|
|
Re: Changes in the .idx file are not reflected in the drop down menus Mathias Mamsch - Sun Dec 06 14:28:43 EST 2009 doors36677 - Sun Dec 06 08:45:30 EST 2009
Mathias
You are partially right -- the idx files don't have to be there but if you carefully read the initial poster questions. The poster question is about folder not individual dxl files. The poster explicitly stated that the dxl files have the necessary comment statements.
So probably the problem is either:
--A idx formatting problem or
--Poster needs the .hlp files (and if poster is editing the .idx files -- there is an implication that he needs the .idx files)
You are right, i'll try to read more carefully in the future.
|
|
Re: Changes in the .idx file are not reflected in the drop down menus llandale - Mon Dec 07 17:20:37 EST 2009
Each of your sub-folders must have two files, a *.idx and a *.hlp file, where '*' is the exact same name as the sub-folder itself. Thus your Admin_DXL folder must have files Admin_DXL.idx and Admin_DXL.hlp. I think those files must have some text, but I'm not sure.
As noted by another poster, your Admin_DXL folder will indeed show up as a menu item if it has the two files in it, whether or not you include it in the parent IDX file. I don't know how to suppress that, but perhaps you can try. Thus the IDX really only translates the folder name to a more suitable menu name, and lets you set the ordering in the menu.
As for the *.hlp files: the first line is displayed using the Tools menu >DXL library... browser. All the other lines are displayed when you click on such a file in that browser. Pretty handy.
|
|