Solved

Window size

Posted on 1999-01-25
2
1,383 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 200 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Via a live example, show how to take different types of Oracle backups using RMAN.

738 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