To move a window:
To resize a window:
To programmatically minimize (iconify) or maximize (enlarge to full-screen) a window:
On Microsoft Windows, you can manipulate the MDI application window programmatically. To do so, refer to the window name as FORMS_MDI_WINDOW. You can programmatically set selected MDI windows properties. For details, refer to the online help for the SET_WINDOW_PROPERTY Built-in.
To set the size, position, and display state of a window at application start-up (i.e., before the end user sees the form), call the appropriate Built-ins from a When-New-Form-Instance trigger. If you are developing an application to run on different operating systems and display devices, you can use the GET_APPLICATION_PROPERTY Built-in to examine the following properties, and then size your windows accordingly:
Note: The Built-in subprograms that change the size and position of objects require arguments for X,Y display coordinates and width/height dimensions. At runtime, Oracle Forms interprets these arguments in the units specified by the form module Coordinate System property: either in character cells, centimeters, inches, pixels, or points.
/*
** Example 1: These 2 procedure calls move the window MY_WIN to
** X,Y coordinates 6 and 8:
MOVE_WINDOW('my_win', 6, 8);
SET_WINDOW_PROPERTY('my_win', position, 6, 8);
** Example 2: These 2 procedure calls resize MY_WIN to a width
** of 80 and a height of 20:
RESIZE_WINDOW('my_win', 80, 20);
SET_WINDOW_PROPERTY('my_win', window_size, 80, 20);
** Example 3: This procedure call minimizes the document window
** MY_WIN:
SET_WINDOW_PROPERTY('my_win', window_state, minimize);
** Example 4: This procedure call uses the Oracle Forms constant
** FORMS_MDI_WINDOW to maximize the MDI window (applies only to
** Microsoft Windows):
SET_WINDOW_PROPERTY(forms_mdi_window, window_state, maximize);
*/