Home » Developer & Programmer » Forms » Can a Forms window size will remain same if we change the resolution of the machin? (Forms 10g, Windows XP)
Can a Forms window size will remain same if we change the resolution of the machin? [message #433605] Thu, 03 December 2009 04:52 Go to next message
suyogsheth
Messages: 18
Registered: November 2009
Location: Pune
Junior Member
Hi ,
I want to create a form. The size of my Main window is 595 X 322. The resolution of my machin is now : 1280 X 1024 Pixels.
Now i want to change my resolution to : 800 X 600 Pixels. Now i want my form should display the window size same as the previous size.
IS it possible to do so. Please tell me the process for this.
Re: Can a Forms window size will remain same if we change the resolution of the machin? [message #434870 is a reply to message #433605] Fri, 11 December 2009 06:19 Go to previous messageGo to next message
beginnerHere
Messages: 55
Registered: October 2009
Member
hi,

make use of set_window_property in when_new_form_instance and set it to a static value.

set_window_property(forms_mdi_window, window_size, 640, 480);


you can also maximize the window so whatever the resolution the form window and the forms mdi window will always maximize upon opening.

set_window_property(forms_mdi_window, window_state, maximize);

set_window_property('WINDOW1', window_state, maximize);


where "WINDOW1" is the name of your form window.

hope it helps.
Re: Can a Forms window size will remain same if we change the resolution of the machin? [message #437533 is a reply to message #433605] Mon, 04 January 2010 23:16 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Did the response you received answer your question?

David
Previous Topic: how to invoke outlook scheduler
Next Topic: tab exit
Goto Forum:
  


Current Time: Thu Sep 29 20:58:54 CDT 2016

Total time taken to generate the page: 0.07008 seconds