![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Restoring Window Focus Topic Summary: Created On: 25-Feb-2004 09:17 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Restoring Window Focus
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.