Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to Maximize a window in Oracle Forms? Please Help

544 views
Skip to first unread message

Maarten Martens

unread,
Feb 10, 2001, 6:11:39 AM2/10/01
to
Hello All,

Can anybody help me? I've created a form with one window. It's called
"IngaveWindow". I've created the following procedure :

PROCEDURE ResizeWindow(Ingavewindow varchar2) IS
wn_id2 Window;
BEGIN
wn_id2 := Find_Window(Ingavewindow);
set_Window_property(wn_id2,window_state,maximize);
END;

Is this correct? I just can't seem to call it...I tried to call the procedure in
the when_new_form_instance trigger on form level...But I don't know exactly how
to do it. Can somebody give me an example? I already maximized the runtime
window by using the "Set_Window_Property(FORMS_MDI_WINDOW, WINDOW_STATE,
MAXIMIZE);" command...Now I would also like to maximize the Canvaswindow
itself...

Thanx in advance


Sincerely,
Maarten

Sergey Sugak

unread,
Feb 10, 2001, 10:48:39 AM2/10/01
to
Hi Maarten!
> Can anybody help me?
Yes of course... :)

First af all you have not write any additional procedure. Forms has
WHEN-WINDOW-RESIZED trigger on a form level.
This trigger fires every time you resize your window.
If you want to reisize canvas (or view) you have to call Set_Canves_Property
(or Set_View_Property).

Hope this'll help you to live happy.


Joost Bataille

unread,
Feb 11, 2001, 10:33:18 AM2/11/01
to

Maarten Martens <maarten...@freebel.net> wrote in message
news:kk8a8t4j59pv5l0at...@4ax.com...

> Hello All,
>
> Can anybody help me? I've created a form with one window. It's called
> "IngaveWindow". I've created the following procedure :
>
> PROCEDURE ResizeWindow(Ingavewindow varchar2) IS
> wn_id2 Window;
> BEGIN
> wn_id2 := Find_Window(Ingavewindow);
> set_Window_property(wn_id2,window_state,maximize);
> END;
>
> Is this correct?
It's a bit confusing to give the input parameter of your procedure the name
'Ingavewindow', I'd prefer something like 'windowname'.

I just can't seem to call it...I tried to call the procedure in
> the when_new_form_instance trigger on form level...But I don't know
exactly how
> to do it. Can somebody give me an example?

You could write 'ResizeWindow('IngaveWindow');

I already maximized the runtime
> window by using the "Set_Window_Property(FORMS_MDI_WINDOW, WINDOW_STATE,
> MAXIMIZE);" command...Now I would also like to maximize the Canvaswindow
> itself...

Why don't you add "Set_Window_Property('IngaveWindow', WINDOW_STATE,
> MAXIMIZE);"
Good luck, Joost


0 new messages