Mximize window [message #446593] |
Tue, 09 March 2010 08:24 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
some of the items are not getting displayed properly in my form when i run.I want all of them to appear on form.Can i maxmize when i open.If so whats the command.
|
|
|
Re: Mximize window [message #446606 is a reply to message #446593] |
Tue, 09 March 2010 09:42 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
gregor
Messages: 86 Registered: March 2010 Location: Germany
|
Member |
|
|
Hi,
in the when-new-form-trigger:
set_window_property('WINDOWxx', window_state, maximize);
NOTE: that "WINDOWxx" is the name of the Window
OR mostly, using MDI, the Constant-Word FORMS_MDI_WINDOW
set_window_property( FORMS_MDI_WINDOW , window_state, maximize);
|
|
|
Re: Mximize window [message #446768 is a reply to message #446593] |
Wed, 10 March 2010 05:50 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
Hi,
I guess the following lines of code will help you to solve the problem and please let us know your status.Ok?
Declare
MDI_Win_Width Number;
MDI_Win_Height Number;
Canvas_width Number;
Canvas_Height Number;
mWindowTitle varchar2(30);
mFromTitle varchar2(30);
mCanvasName varchar2(30);
mWindowName varchar2(30);
Begin
mWindowTitle := 'About Us Form';
mFromTitle := 'Any Group';
mWindowName := 'WINDOW1';
mCanvasName := 'About';
/* This module is to maximize window1 and displays the data canvas in the *\
\* center of MDI window. */
Set_Window_Property(Forms_MDI_Window,Window_State,Maximize);
Set_Window_Property(Forms_MDI_window,Title,mWindowTitle);
MDI_Win_width := Get_Window_Property(Forms_MDI_Window,Width);
MDI_Win_Height := Get_Window_Property(Forms_MDI_Window,Height);
Canvas_Width := Get_Canvas_Property(mCanvasName,Width);
Canvas_Height := Get_Canvas_Property(mCanvasName,Height);
Set_Window_Property(mWindowName,Width,Canvas_Width);
Set_Window_Property(mWindowName,Height,Canvas_Height);
Set_Window_Property(mWindowName,TITLE,mFromTitle);
Move_Window(mWindowName,(MDI_Win_width-Canvas_width)/2,
(MDI_Win_Height-Canvas_Height)/2);
:System.Message_Level := '25';
End;
|
|
|
Re: Mximize window [message #446769 is a reply to message #446768] |
Wed, 10 March 2010 05:56 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
Thanks for the help mahatab but where to put this under which trigger pre-form or when new form instance.I also want to let you know that my form has around 25 fields and it must be displayed.
|
|
|
Re: Mximize window [message #446798 is a reply to message #446769] |
Wed, 10 March 2010 09:06 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
opps, sorry i should let u know that you should put it under the when new form instance trigger and see it will allow you to show all the fields if the fields are inside the boundary. let me know what happen next, i am waiting my friend.
|
|
|
|