![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Might another fix be to select the top-level folder (or any folder) before or immediately after re-showing the Explorer?
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Another option that seems to work is:
hide(dbExplorer); ack("ready to show again?"); bringToFront(); |
|
![]() |
|
![]() |
|
Awsome! Thanks, Andrew.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
DXL to hide/show the main DOORS window?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.