?
Solved

Window size

Posted on 1999-01-25
2
Medium Priority
?
1,395 Views
Last Modified: 2012-05-04
I would like to make my forms window smaller since my form is rather small. It would look moore nice if the window is the same size as the form. I run forms 4.5.9.7.0,Oracle 7 in NT.
 
0
Comment
Question by:annkal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
Mark Geerlings earned 600 total points
ID: 1083806
Here are the two commands I use in the when-new-form-instance trigger of the first form called in our application (that form functions as the main menu and remains in the background as long as the user is in the application):
  set_window_property(FORMS_MDI_WINDOW,WINDOW_SIZE,595,370);
  set_window_property(FORMS_MDI_WINDOW,position,0,0);
My problem was the opposite, I wanted to make the window as big as possible, without scrolling.  These dimensions are the approximate maximum for 800 x 600 screen resolution.  You should be able to adjust the window size smaller and the position larger to get the effect you like.

The fastest way to test may be to create a test form with four visible, enterable number fields: width, height, x_pos and y_pos and when-validate-item triggers on each.  The triggers on width and height should call the first command above using the values entered, instead of the literals I used, and the triggers on x_pos_and y_pos should call the second command listed using the values entered.

0
 
LVL 1

Expert Comment

by:bkm
ID: 1083807
For making the window to the maximum size, use the following command set_window_prperty(forms_mdi_window,window_state,maximize) in the When new form instance trigger.

For making the windows to a specific size, 'window_size' property is to be used.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question