Re: FORMS 4.5 Question

From: Andrew Tompkins <andrewto_at_kingfish.cse.tek.com>
Date: 1997/02/19
Message-ID: <ANDREWTO.97Feb19090007_at_kingfish.cse.tek.com>#1/1


In article <330AA967.29DD_at_sn.no> Erlend Stokkedal <sunset_at_sn.no> writes:

> I'm using Forms 4.5 on Oracle 7.3.2.1 on an NT-server, and i wonder if
> someone can help me with a little problem that i have. The problem is
> that I have made a menu at a canvas which looks like this:
>
> 1. Order registering
> 2. Customer registering
> 3. Article registering
> .
> .
> .
> 10. Sytemregister
>
> Your choice:______
>
> If the user wants to register orders, he chooses 1, and I want to go to
> another canvas(perhaps on another form) with a submenu for the main
> choice(1. Order registering). I have made a When-Validate-Trigger at the
> text-field where the user enters his choice that tests which number the
> user have entered, and I have coded the program so if the user enters 1
> then call_form('orders') is invoked. In the submenu there is an option
> that I have made so the user can go back to the main-menu, and here as
> well I have used call_form('main'); The problem is that when I'm chosing
> Action-Exit from the default menu-line there seems to be a stack with
> all my windows that I've been visiting.
>
> My question is: How can i Terminate the window with the menu described
> at the top of this news-posting when I'm calling another window ?

I believe that using new_form instead of call_form will do this for you if you want to keep your windows in separate form modules. new_form replaces the calling form with the new form on the call stack terminating the calling form.

Something else you may want to try is to place all of your windows and canvases in the same form module and use show_window and hide_window to control your windows.

Also, you may want to try using the menu editor to make top line menus rather than putting them in your canvases (as it appears you are doing above) if you have it available.

--Andy
-- 
-------------------------------------------------------
| Andrew G. Tompkins    | #include <disclaimer.std.h> |
| Software Design Eng.  ------------------------------|
| Tektronix, Inc.                                     |
| Measurment Business Div./Instruments Business Unit  |
| Phone: (503) 627-5172      fax: (503) 627-5548      |
| email: Andrew.Tompkins_at_tek.com (work)               |
|        andytom_at_teleport.com (home)                  |
| http://www.teleport.com/~andytom/                   |
-------------------------------------------------------
Received on Wed Feb 19 1997 - 00:00:00 CET

Original text of this message