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: DXL to hide/show the main DOORS window?
Topic Summary:
Created On: 12-Apr-2008 18:21
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.
 12-Apr-2008 18:21
User is offline View Users Profile Print this message


David Jakad

Posts: 94
Joined: 20-Jul-2007

Is there some DXL commands I can use to hide and show the main DOORS window? Or maybe minimize, restore, maximize?

Edited: 12-Apr-2008 at 18:30 by David Jakad
Report this to a Moderator Report this to a Moderator
 14-Apr-2008 19:18
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Not sure if that's possible. The closest I can think of would be to run in batch mode.

-------------------------
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
 14-Apr-2008 19:46
User is offline View Users Profile Print this message


Eric Piallat

Posts: 33
Joined: 26-Jan-2004

You may try this:
hide dbExplorer
show dbExplorer

It works with DOORS 7.1 at least, I didn't test it with DOORS 8 yet.

Éric

-------------------------
E. Piallat
CeBeNetwork
Report this to a Moderator Report this to a Moderator
 14-Apr-2008 19:52
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Eric's correct and it works on DOORS 8.1, just tested it.

Forgot about the dbExplorer global.

-------------------------
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
 14-Apr-2008 20:11
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

For me on v8.1, if I have a module selected and then run the attached (confirming hiding and showing), my DOORS explorer locks up with repeated:

-R-E- DXL: <config/mappingFns.inc:395> null Folder parameter was passed into argument position 1

Errors, whenever I try to select something else. Eventually I get a diagnostic log.

- Louie
Report this to a Moderator Report this to a Moderator
 14-Apr-2008 20:24
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Originally posted by: Louie Landale

For me on v8.1, if I have a module selected and then run the attached (confirming hiding and showing), my DOORS explorer locks up with repeated:



-R-E- DXL: <config/mappingFns.inc:395> null Folder parameter was passed into argument position 1



Errors, whenever I try to select something else. Eventually I get a diagnostic log.



- Louie


That's strange, I just took your code and tried it with a module open in READ-ONLY and the again in EXLCUSIVE EDIT, and again with the module closed with the DXL Interaction instantiate from the DB Explorer. While the module was opend I also tried it while calling the DXL Interaction from the Module. Didn't receive any errors.

-------------------------
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
 14-Apr-2008 22:15
User is offline View Users Profile Print this message


David Jakad

Posts: 94
Joined: 20-Jul-2007

It works for me, but when I re-show dbExplorer, I get the following message in the DXL Interaction Window:

-R-E- DXL: <config/mappingFns.inc:406> null Folder parameter was passed into argument position 1

Is there a way I can hide the DXL Interaction Window too?

I'm running DOORS 8.2. I am running the hide/show dbExplorer commands from my own dialog box buttons. My dbExplorer comes back to life after this error repeats 10 times in the DXL Interaction Window. Eventually, it stops giving the error, and the dbExplorer seems to work fine after that.

-R-E- DXL: <config/mappingFns.inc:406> null Folder parameter was passed into argument position 1
-R-E- DXL: <config/mappingFns.inc:406> null Folder parameter was passed into argument position 1
-R-E- DXL: <config/mappingFns.inc:406> null Folder parameter was passed into argument position 1
-R-E- DXL: <config/mappingFns.inc:406> null Folder parameter was passed into argument position 1
-R-E- DXL: <config/mappingFns.inc:406> null Folder parameter was passed into argument position 1
-R-E- DXL: <config/mappingFns.inc:406> null Folder parameter was passed into argument position 1
-R-E- DXL: <config/mappingFns.inc:406> null Folder parameter was passed into argument position 1
-R-E- DXL: <config/mappingFns.inc:406> null Folder parameter was passed into argument position 1
-R-E- DXL: <config/mappingFns.inc:406> null Folder parameter was passed into argument position 1
-R-E- DXL: <config/mappingFns.inc:406> null Folder parameter was passed into argument position 1
too many messages -- suspending error reporting

EDIT:
Oooh, oooh, oooh, I did get the DOORS Death afterall (like Louis). Once I get the error, if I keep clicking different projects and folders in the Explorer, eventually I get 10 errors, the errors stop, and the Explorer starts responding. But, if I keep clicking the menu bar in the Explorer. I get 10 error messages and then.... death (Diagnostic Log)! Specifically, it seems to be the "Tools" menu on the Explorer window that gives the ultimate death. The other menu options are OK.

-R-F- DXL: <standard/cps/cps_common_globals.inc:260> internal error, please submit a bug report
Backtrace:
<standard/cps/cps_maps.inc:457>

Edited: 14-Apr-2008 at 22:55 by David Jakad
Report this to a Moderator Report this to a Moderator
 14-Apr-2008 23:15
User is offline View Users Profile Print this message


Eric Piallat

Posts: 33
Joined: 26-Jan-2004

In fact, I tried it too fast, I get the same errors.

Seems like it only works if nothing was selected.

I work on some fix, consisting in "closing" everything in explorer window before hiding it... if I can find some perm doing it.

-------------------------
E. Piallat
CeBeNetwork
Report this to a Moderator Report this to a Moderator
 14-Apr-2008 23:21
User is offline View Users Profile Print this message


David Jakad

Posts: 94
Joined: 20-Jul-2007

Might another fix be to select the top-level folder (or any folder) before or immediately after re-showing the Explorer?
Report this to a Moderator Report this to a Moderator
 15-Apr-2008 15:47
User is offline View Users Profile Print this message


David Jakad

Posts: 94
Joined: 20-Jul-2007

After some trial and error I found that setPos(dbExplorer,0,0) seems to work without issues, to re-show the main Explorer.

show(dbExplorer), realize(dbExplorer), and raise(dbExplorer) all had similar error-producing behavior.

EDIT:
I take that back... setPos runs into the same problem, just a little delayed. I spoke too soon. Maybe I will try just using setPos to move the window off the visible screen. Hmmm.... more trial and error.

Edited: 15-Apr-2008 at 15:55 by David Jakad
Report this to a Moderator Report this to a Moderator
 10-Jul-2008 16:39
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

My quick workaround is to use 'setPos' for moving the explorer out of the visible screen and back if required, instead of using 'hide' and 'show'. The only problem with this approach is that if the user fiddles around with the task bar button while the explorer is off the screen, then Windows get confused and sometimes fails to restore the window.

Peter
Report this to a Moderator Report this to a Moderator
 10-Jul-2008 17:18
User is offline View Users Profile Print this message


David Jakad

Posts: 94
Joined: 20-Jul-2007

setPos is my workaround also.

As it turns out, the main explorer window is a normal DXL-based DB like any other. So not only can you move dbExplorer with setPos, you can change the title with setTitle, etc. Also, in the standard DXL files, you can find global DBE handles for the individual components of dbExplorer, such as the project/folder treeView (dbExpTree), module listView (dbExpList), history dropdown (dbExpHistory), favorites dropdown (dbExpFavoirites), and maybe other things.

try something like this:

Edited: 10-Jul-2008 at 17:58 by David Jakad
Report this to a Moderator Report this to a Moderator
 10-Jul-2008 21:39
User is offline View Users Profile Print this message


Andrew Wallen

Posts: 18
Joined: 23-Sep-2006

Another option that seems to work is:

hide(dbExplorer);
ack("ready to show again?");
bringToFront();
Report this to a Moderator Report this to a Moderator
 10-Jul-2008 22:17
User is offline View Users Profile Print this message


David Jakad

Posts: 94
Joined: 20-Jul-2007

Awsome! Thanks, Andrew.
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.