Re: Problem with Forms MDI

From: DanHW <danhw_at_aol.com>
Date: 18 Dec 2000 05:04:40 GMT
Message-ID: <20001218000440.03250.00004300_at_ng-fg1.aol.com>


>Dear all
>
>I have the situation that when I have multiple forms opened within an MDI
>window and when I click on the MDI close button in the top right hand
>corner(little box with the X in it), the last opened form closes instead of
>the whole application. So how do I change the behaviour of this MDI Window
>so that all the forms close when I hit the MDI window Close button...
>
>I'm new to Oracle Developer and I still don't fully understand the way form
>windows interact with each other...
>
>Any tips (or links) would be greatly appreciated...
>
>Thanks in advance
>Johnny A
>

The standard trick is to create a global (or library package variable) that is set to a specific value when you Close the Application. The form/menu item that starts the process sets this global to this value, and closes. The next window now will have its WHEN-WINDOW-ACTIVATED trigger fire. In this trigger you have conveniently placed a bit of code that says if the global is set, to close that form. So this form closes, and the next window fires it WHEN-WINDOW-ACTIVATED trigger....

HTH
DanHW Received on Mon Dec 18 2000 - 06:04:40 CET

Original text of this message