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: Restoring Window Focus
Topic Summary:
Created On: 25-Feb-2004 09:17
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.
 25-Feb-2004 09:17
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

When a user defined dialog box closes, the module editor window loses focus which is annoying for the user.
The window can be brought to the front by calling edit, share or read again, but this causes a noticeable flicker in the display.

When telelogic built-in dialogs close there is also a discernable flicker and I suspect that the focus IS being restored explicity.

I can get a handle on the window using "Window__ w = window current Module" which can be used for the width and height functions.

What I am looking for is something like the raise(DB db) function that takes a window handle rather than a DB.

Of course, none of this is documented!

Does anyone know of another way to restore the focus of a module editor window?


-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 25-Feb-2004 10:47
User is offline View Users Profile Print this message


Judith Underwood

Posts: 35
Joined: 25-Sep-2002

You can create a dialog box with a specified module as its parent:

Module m = current
DB myDB = create(m, "My DB")

Then when myDB closes, focus returns to the module window.

You can also reparent an existing DB with
setParent(db, m).

Judith
Report this to a Moderator Report this to a Moderator
 5-Mar-2004 13:03
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Thanks Judith, but that only works for the current module.

I didn't explain what I am after very well.
I am looking fo a way to restore the focus of module windows after an operation is completed.

An example is creating a link between two modules.
The built-in DOORS drag and drop linking restores both the source and target module windows sensibly.
But I am not using the doors built in link functions.
When the link has been created, I want to restore the module windows in the same fashion and the builtin drag and drop.

Also, notice that when any dialog closes, the current module window may be restored, but other doors windows get pushed back behind the explorer and/or other applications.

Vary frustrating.


-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 27-May-2004 23:14
User is offline View Users Profile Print this message


Aaron Nauman

Posts: 5
Joined: 26-May-2004

I was very frustrated by the lack of this support also. I wrote some Windows code to find the module window by its window title and bring to the foreground. It is a bit of a hack, but works. Let me know if you want it and I will package it up.
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.