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: How to minimize a DOORS module from DXL?
Topic Summary:
Created On: 14-Aug-2006 15:19
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.
 14-Aug-2006 15:19
User is offline View Users Profile Print this message


Iftakher Uddin

Posts: 56
Joined: 16-Sep-2004

Hi *,

Is it possible to minimize the opened DOORS module window from DXL? Using open, read or edit function it is possible to make the module visible/invisible... but how to keep the module visible but minimized in the task bar?

Thanks for any help...

Rony
Report this to a Moderator Report this to a Moderator
 17-Aug-2006 23:51
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

With DXL you can open modules in the background as it won't be visually displayed. Doing this will increase the performance of the DOORS application and anything else you do.

Off the top of my head, once a module is open in this state I don't know of a DXL function off the top of my head that will automatically display it visually again to you or bring it to the foreground.

About minimizing the module with code I would do this outside of DXL and simply write a short Windows script in visual basic, etc..

-------------------------
pete.kowalski(at)motorola.com
Report this to a Moderator Report this to a Moderator
 21-Aug-2006 08:48
User is offline View Users Profile Print this message


Iftakher Uddin

Posts: 56
Joined: 16-Sep-2004

Hi,

thank you for the response.

I think if I open the module in background then I cant work with any specific view.

I was thinking the same that I could minimize the DOORS module using VBscript wrapper from DXL. But I didnt find any list of OLE method/properties of DOORS.Application. Do you know where I can find the list of OLE/COM properties and methods for DOORS.Application?

Thanks again...

Rony
Report this to a Moderator Report this to a Moderator
 21-Aug-2006 10:36
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Ronny,
you may have a look into DXL-reference manual. There is a chapter "Controlling DOORS from applications that support automation" under "OLE objects".

There you may find the only 2 functions supported by "Doors.Application".

Sorry for that answer, but I think it will not help you to solve your problem

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 21-Aug-2006 12:42
User is offline View Users Profile Print this message


Iftakher Uddin

Posts: 56
Joined: 16-Sep-2004

Hi Reik,

yes you are correct. I have already seen that but I thought some one has a list of the functions/properties of DOORS.Application automation.

As far as I can remember it is possible to extract the windows application message communication with Spy++ tool accompanied by Microsoft Visual Studio (MSVS). Unfortunately I dont have MSVS and I am also not sure whether this Spy++ tool is still shiped with MSVS . I am also not sure whether it is possible to extract the properties/functions using some other tool.

Anyway, hope some body here has a list of DOORS.Application functions/properties list.

Thanks and Greetings,
Rony

Edited: 21-Aug-2006 at 14:34 by Iftakher Uddin
Report this to a Moderator Report this to a Moderator
 22-Aug-2006 21:54
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Hi Rony,

I don't believe that there are any other functions available via OLE/Automation than the ones listed in the manual. In Visual Basic I added a reference to the DOORS Type Library (at ...\bin\doorsdxl.tlb) and looked in the object browser....the only things listed are the runDXL and runStr methods and the Result property, just like the manual says. I don't think that DOORS has anything else exposed to OLE (or Automation, or COM, or whatever).

You can probably write a script that just grabs the window from the OS and minimizes it. We had a perl script that would open DOORS and login, run some DXL (with runDXL) and then close DOORS, by using this method (this was before we realized that we could do the same thing with batch mode). I don't fully understand it but it may help you:

my @windows = FindWindowLike(0, "DOORS","","","");
for (@windows)
{
my $txt = GetWindowText($_);

if ($txt =~ /^DOORS Database:/)
{
SetForegroundWindow($_);
SendKeys("\%Fx"); #Close the DOORS window
}
}


Chris
Report this to a Moderator Report this to a Moderator
 23-Aug-2006 13:50
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

Iftakher:

Regarding opening up a specific DOORS view when a module is open in the background.

You have several options:

1) Have your specific view as the default view when the module is open
2) If you have several views that you want to work with when the module is in the background just write quick view scripts that will apply different views to the module when it is is in this state. I find developing quick view scripts as a easy thing with DXL unlike some other stuff.

-------------------------
pete.kowalski(at)motorola.com
Report this to a Moderator Report this to a Moderator
 23-Aug-2006 14:13
User is offline View Users Profile Print this message


Iftakher Uddin

Posts: 56
Joined: 16-Sep-2004

Hi Pete,
Congratulations to become a centurian (100 post in the forum :-)!
Could you please explain bit details what is quick view? We can count the column from a default view regardless its display mode. But if we want to load a specific view from background then its not possible.

@Chris
Thanks for the example :-).

Many Greetings,
Rony

=================
Iftakher Uddin (Rony)
HOOD Group
Report this to a Moderator Report this to a Moderator
 29-Aug-2006 15:22
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

I have been able to minimize and restore module windows using the attached include file. It requires a third-party software package called "AutoIt" to be installed. If AutoIt is missing from the system the script is called from, the function call will fail silently but should not cause any run-time error.

This has been tested with DOORS 7.1 but should work with 7.x and 8.x.

The required software package is AutoIt v3.2.0.1 and is available from http://www.autoitscript.com/autoit3

Please see the include file for usage and window state constants.

-Dennis

windows.inc
windows.inc  (2 KB)

Report this to a Moderator Report this to a Moderator
 30-Aug-2006 22:04
User is offline View Users Profile Print this message


Bruce Tuskey

Posts: 2
Joined: 30-Aug-2006

All you have to do is reassign the variable again with the display option set to true.


-------------------------
Bruce Tuskey

"All that is gold does not glitter, not all those who wander are lost:..." - Gandalf the Grey (JRR Tolkien)

Tuskey@gmail.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.