We help IT Professionals succeed at work.

Set Window Property Built In

hayub
hayub asked
on
How can I use the set_window_property built in for automatically maximizing the size of the window at runtime? I mean every time the form executable is invoked it should open in the maximized window.

Thanks in advance


Hassan
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2008
Commented:
Use  

set_window_property (FORMS_MDI_WINDOW, WINDOW_STATE,MAXIMIZE);

in the    WHEN-NEW-FORM-INSTANCE trigger defined at form level.
jtriftsMI and Automation
CERTIFIED EXPERT

Commented:
Create a form level trigger of type:
When-New-Form-Instance

In the trigger use:

SET_WINDOW_PROPERTY
  (your_window_name_or_id,window_state, MAXIMIZE);

(If you have this requirement for all of your forms, you can create the trigger as a subclassed object which may then be inherited by the rest of your forms referencing it.)

HTH,

JT
u can also maximize the window in this way too

in wondow property go to the sizes and change the default size to maximize.

using trigger u can use as said by others