![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Popup menu on DB Topic Summary: Created On: 11-Sep-2008 16:58 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'm trying create a popup menu on one of my dialog box, more specifically on a list view. I'm trying to use the following
createPopup Declaration void createPopup() Operation Creates a popup menu in a module or user-created dialog box. But I get cannot create popup inside menu error when I do. So needless to say I'm a little confused. Here's the code I'm attempting to use (as a start): ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
Hi Scott,
One pointer is to look at the startConfiguringMenus and stopConfiguringMenu functions. I believe there is a version for DB and DBE. Also, if the menu you are creeating is empty, DOORs throws an error, so make sure you have atleast one 'createItem' after create popup. Beware, if you put logic on the createItems, make sure that at least one of them is always on, or you'll run into problems. Hope this helps a little Paul |
|
![]() |
|
![]() |
|
Yup, I tried that as well using the startConfiguringMenus and adding a createItem in there as well, still get the same error.
Is there a particular version of the createItem I should be using with the popup menu? ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
Hi Scott,
Take a look at the attached code. I could not get the popup to work on just the dialog box as the help manual suggests, but it does work on listViews, treeViews or canvas DBEs. Note: you have to pass in null helptext, inactive help text unless you add a status bar to your DB and for popups, you can not specify a tool tip, so this too is null. Paul |
|
![]() |
|
![]() |
|
Actually, I take that back, it works on listView, treeView, but not canvas, although it doesn't throw an error.
See attached Paul Edited: 11-Sep-2008 at 17:22 by Paul Howstan |
|
![]() |
|
![]() |
|
Eh...
I figured it out. I had to restart DOORS for some reason. Not sure why. I got the same error when running your code, so I figured something else was causing it and decided to just start from scratch. Restarted the client and everthing works great. Thanks Paul!!! ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Popup menu on DB
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.