Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Window size

Posted on 1999-01-25
2
Medium Priority
?
1,405 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
Via a live example, show how to take different types of Oracle backups using RMAN.

604 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