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: Popup menu on DB
Topic Summary:
Created On: 11-Sep-2008 16:58
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.
 11-Sep-2008 16:58
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 11-Sep-2008 17:02
User is offline View Users Profile Print this message


Paul Howstan

Posts: 47
Joined: 27-Sep-2006

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
Report this to a Moderator Report this to a Moderator
 11-Sep-2008 17:08
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 11-Sep-2008 17:14
User is offline View Users Profile Print this message


Paul Howstan

Posts: 47
Joined: 27-Sep-2006

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
Report this to a Moderator Report this to a Moderator
 11-Sep-2008 17:21
User is offline View Users Profile Print this message


Paul Howstan

Posts: 47
Joined: 27-Sep-2006

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
Report this to a Moderator Report this to a Moderator
 11-Sep-2008 18:34
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
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.