![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Problem modifying createFormalPopupMenu Topic Summary: in \lib\dxl\config\formal.dxl Created On: 7-Sep-2007 20:14 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'm trying to add a menu item to the popup menu when you right click on an object. I'm getting stack underflow errors for some reason. Here is the code I've added.
Any ideas? ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Hello David,
Replace \\\\C17es\\C-17 (2070)\\TRM\\RTM\\DXL Scripts\\MTD Editor-e.inc with a function as follows wherein the function will be referring to the inc: createItem(showWindowEditor, "test", "Editor Window", 'w', 'W', modKeyCtrl, null, null, "Opens a window to modify the current object", "Must be in shared or exclusive edit mode") This should take care of the problem rgds, Uma |
|
![]() |
|
![]() |
|
The only problem is I don't want it as a global include since it only applies to specific modules. There are a lot of data structures in the script that I don't want created any time a module is opened.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Hi David,
it seems that you have mixed up the two (three) type of createItem functions ![]() If you want to run a script file on menu item you need to use: void createItem(int mappingFunction(), string label, char mnemonic, char accelerator, int modifierKeyFlags, IconID icon_id, string tooltip, string helptext, string inactiveHelp, string dxlFile) so your example becomes: createItem(showWindowEditor, "Editor Window", 'w', 'W', modKeyCtrl, null, null, "Opens a window to modify the current object", "Must be in shared or exclusive edit mode", "\\\\C17es\\C-17 (2070)\\TRM\\RTM\\DXL Scripts\\MTD Editor-e.inc") Hope that solves your problems, Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
I tried that one Reik, it didn't give any errors but when I right click and selected the item, the script didn't run. Nothing happened.
EDIT: Nevermind. Apparently nothing will happen unless its a dxl file. So I made a dxl file that includes my include and it worked. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 10-Sep-2007 at 16:18 by David Pechacek |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Problem modifying createFormalPopupMenu
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.