Re: Forms 4.0 questions

From: Martin Farber <farber_at_nynexst.com>
Date: 15 Sep 1994 12:54:39 GMT
Message-ID: <359g6g$kro_at_news.nynexst.com>


In article 12SEP199414123977_at_devbn1.triumf.ca, grant_at_devbn1.triumf.ca (Peter Grant) writes:
>
>While I've only been using Forms 4.0 for a couple of weeks, I certainly am
>running into a number of problems.
>
>I'm running 7.0.16.6 and Forms 4.0.12 under OpenVMS 5.5-2H4 and Motif 1.2.
>
>First of all, is it possible to have the size of the root_window come up big
>enough to hold the form by default? At the moment, I'm resizing the form at
>startup which works, but is painfully to watch all of the redrawing that is
>going on (first the left part is drawn, then erased, then the right part is
>drawn, and then erased as I resize the window and the whole thing is drawn).
>
>I have a number of buttons on this canvus which will want to show another
>window of information when pressed. Should I do this with additional windows,
>or just do a Call_Form? Call_Form really screws up the original window's
>"message area" when it returns, so it's not really usable. Again, if the
>original window was big enough this would work.
>
>
>Peter Grant, BSc, ISP //////// /////// //////// // // // // ////////
>grant_at_devbn1.triumf.ca // // // // // // /// /// //
> // /////// // // // //////// ///////
> // // // // // // // // // //
> // // // //////// ////// // // //
> Canada's National Meson Facility
>__________________________________________ _ Vancouver, British Columbia
>

If you define your windows' width and hight you'll avoid having to do this at run time. This is done under Forms->Windows. A Show View draws you a box around what this is set to and I allow another .25 in. in the height - to allow for the message box.

After the return from a called form, one usually has to reset the root window to get the message box back in it's place:

PROCEDURE Reset_Root_Window IS
wn VARCHAR2(11) := 'ROOT_WINDOW';
wh NUMBER := Get_Window_Property(wn,HEIGHT); BEGIN
 Set_Window_Property(wn, HEIGHT, wh +1);  Set_Window_Property(wn, HEIGHT, wh);
END; As to which approach is better, I don't know. I tend toward calling Forms which I can also reuse by calling them directly.

Good Luck and happy computing.

Sincerely,

Martin Farber
Independent Oracle Consultant "A Jack of all trades and a slave to one."

                        |  NYNEX Science & Technology
                        |  500 Westchester Ave, Rm 1D10
                        |  White Plains, NY  10604
                        |     -----------------
                        |  email: farber_at_nynexst.com
                        |  Voice: 914/644-2656
                        |    FAX: 914/644-2216
Received on Thu Sep 15 1994 - 14:54:39 CEST

Original text of this message