![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Closing child dialogs... Topic Summary: Created On: 24-Feb-2006 11:45 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi all,
I wondering why DOORS after closing parent dialog box(main DB) dosn't close all child dialogs? Example: void foo(DBE dbe) { DB parent = getParent(dbe) DB childDB = create(parent, "Child DB") realize childDB } DB mainDB = create("Main DB") DBE btn = button(mainDB, "Foo", foo) realize mainDB Is there any method to close such childs, without passings/global handles to them? Regards, Rafal Dudycz |
|
![]() |
|
![]() |
|
Look at functin hide and close
|
|
![]() |
|
![]() |
|
But it doesn't solve my problem. Or maybe I'm missing something...?
//########################################### void fooCloseCB(DB db) { //some cleanups hide db } void foo(DBE dbe) { DB parent = getParent(dbe) DB childDB = create(parent, "Child DB") close(childDB, true, fooCloseCB) realize childDB } void closeCB(DB db) { //some cleanups hide db } DB mainDB = create("Main DB") DBE btn = button(mainDB, "Foo", foo) close(mainDB, true, closeCB) realize mainDB //########################################### All I need is to call close method for child dialog (fooCloseCB), but I have no handle to child window, which needs to be passed... Is there any method (or loop) to obtain handles to all dialog objects (dbe & db) which are childs of dialog box? Regards, Rafal Dudycz |
|
![]() |
|
![]() |
|
During exit close all dialog boxes that are showing. (ie., use the showing function)
|
|
![]() |
|
![]() |
|
I presume the "parent" dialog script is the one also defining the "chilren" dialogs.
Here's an outline: Have a Skip list that holds the values of child DBs. When a child is created put its DB handle in the Skip. Override the native "close" button on the parent DB with your own Close software using command "close(dbParent, true, applyCloseParent)". Any other button on the parent that closes the dialog (perhaps "OK") needs to call function applyCloseParent before it ends. Function applyCloseParent loops through the Skip list and hides any DB it finds if that DB is "showing". - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Closing child dialogs...
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.