Home » Developer & Programmer » Forms » maximize window
maximize window [message #393361] Sun, 22 March 2009 02:29 Go to next message
imuharram
Messages: 48
Registered: January 2009
Member
my window doesn't maximize even when i use the below code in When new form instance

set_window_property(forms_mdi_window,window_state,maximize);
set_window_property('MY_MAIN_WINDOW',window_state,maximize);
Re: maximize window [message #393394 is a reply to message #393361] Sun, 22 March 2009 09:28 Go to previous messageGo to next message
itech
Messages: 173
Registered: May 2008
Location: Fsd, Pakistan
Senior Member

try this
create a program unit

PROCEDURE I_WIN_STATE(WSTATE IN VARCHAR2 := 'MAX',WNAME IN VARCHAR2 := '') IS
BEGIN
if wname is not null then
IF UPPER(WSTATE) LIKE 'MAX' THEN
set_window_property(UPPER(wname),WINDOW_STATE,MAXIMIZE);
ELSIF UPPER(WSTATE) LIKE 'MIN' THEN
set_window_property(UPPER(wname),WINDOW_STATE,MINIMIZE);
ELSE
set_window_property(UPPER(wname),WINDOW_STATE,NORMAL);
END IF;
else
message('Window name can not be null');
raise form_trigger_failure;
end if;
END;


then call i_win_state('max',:system.event_window);
Re: maximize window [message #394468 is a reply to message #393394] Fri, 27 March 2009 05:09 Go to previous messageGo to next message
imuharram
Messages: 48
Registered: January 2009
Member
It didn't work
The only thing that worked is to set SeparateFrame=True, although I don't want to have two different windows but it's the only thing that worked to enable maximize window after I click on the maximize button.
The prolblem is I changed other parameters
width=1000
height=1000
colorScheme=white
so I won't have to click on the maximize button and to have the size fixed
and now I can't run my forms
In the OC4J Instance window, it's written at the end
configFileName: c:\oracle\product\10.2.0\db_2/forms90/server/formsweb.cfg
testMode: false

why did this happen? and what should I do?
Re: maximize window [message #394478 is a reply to message #393361] Fri, 27 March 2009 05:46 Go to previous messageGo to next message
rajy_salim
Messages: 204
Registered: January 2008
Location: Beirut - Lebanon
Senior Member
Please read the Forum Guidlines before posting and use them while posting in order to provide a readable request.

Rajy
Re: maximize window [message #394502 is a reply to message #394478] Fri, 27 March 2009 08:24 Go to previous messageGo to next message
imuharram
Messages: 48
Registered: January 2009
Member
ok I'm sorry for any confusion
I figured out what's wrong
I couldn't run my forms because in the formsweb.cfg file I tried to change the colorScheme=White and when I set it back to teal it worked again.
I maximized my window size by changing the parameters in Height and Width, and set SeparateFrame=False
Re: maximize window [message #394614 is a reply to message #394502] Sat, 28 March 2009 11:30 Go to previous messageGo to next message
itech
Messages: 173
Registered: May 2008
Location: Fsd, Pakistan
Senior Member

you didnt mentioned the forms version

the code i supplied works perfectly in forms 6i with usesdi=yes parameter.
Re: maximize window [message #394624 is a reply to message #394614] Sat, 28 March 2009 13:53 Go to previous message
imuharram
Messages: 48
Registered: January 2009
Member
I have forms 10g
Previous Topic: Oracle Developer Forms 6i Installation error
Next Topic: LIKE STATMENT AS PARAMETER
Goto Forum:
  


Current Time: Mon Feb 10 03:24:45 CST 2025