Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to restrict a form to open in maximized window 1

Status
Not open for further replies.

bilalch

Programmer
Sep 26, 2003
84
IR
i want my forms to open only in the maximized window and at the top. pls if any one can guide me.
 
Put this in your WHEN-NEW-FORM-INSTANCE

[tt]Set_Window_Property('<your_window>',WINDOW_STATE,MAXIMIZE);[/tt]
 
hi dear lewisp

many thanks for ur tips, it works.
can u tell me if i want the forms runtime also in the maximised. bcoz it maximizes the window but doesn't maximize the forms runtime.

also tell me for reports plz

thanx
bye
 
To do anything with the forms runtime window, use FORMS_MDI_WINDOW in place of your window name. eg

[tt]Set_Window_Property(FORMS_MDI_WINDOW,WINDOW_STATE,MAXIMIZE);[/tt]

This is also useful for setting your forms window to the centre of the current screen.
 
yes dear lewisp.

thats what i ws looking for. many many thanx
for ur precious tip.
 
hi lewisp

can u plz tell me the same for reports part.
 
Set_Window_Property(WINDOW_NAME in varchar2,Property In Number,Value in Varchar2);

is in the Built in packages (Standard Extensions)
but What i use is

Set_Window_Property(FORMS_MDI_WINDOW,WINDOW_STATE,MAXIMIZE);

what is the reason , is WINDOW_STATE a variable of NUMBER type, If so Where can i get the appropriate values for the parameters.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top