A script-enabled browser is required for this page to function properly.

RESIZE_WINDOW Built-in

Description

Changes the size of the given window to the given width and height. A call to RESIZE_WINDOW sets the width and height of the window, even if the window is not currently displayed. RESIZE_WINDOW does not change the position of the window, as specified by the x and y coordinates of the window's upper left corner on the screen.

You can resize the MDI application window by specifying the constant FORMS_MDI_WINDOW as the window name.

You can also resize a window with SET_WINDOW_PROPERTY.

Syntax

PROCEDURE RESIZE_WINDOW
(window_id Window,
width
NUMBER,
height
NUMBER);

PROCEDURE RESIZE_WINDOW
(window_name VARCHAR2,
width
NUMBER,
height
NUMBER);

Built-in Type unrestricted procedure

Enter Query Mode yes

Parameters

window_id 
 
Specifies the unique ID that Oracle Forms assigns the window when created. Use the FIND_WINDOW Built-in to return the ID to an appropriately typed variable. The data type of the ID is Window.
 
window_name 
 
Specifies the name that you gave the window when creating it. The data type of the name is VARCHAR2.
 
width 
 
Specifies the new width of the window, in form coordinate units.
 
height 
 
Specifies the new height of the window, in form coordinate units.

RESIZE_WINDOW Examples

/*

** Built-in: RESIZE_WINDOW
** Example: Set Window2 to be the same size as Window1
*/
PROCEDURE Make_Same_Size_Win( Window1 VARCHAR2, Window2 VARCHAR2) IS
wn_id1 Window;
w NUMBER;
h NUMBER;
BEGIN
/*
** Find Window1 and get it's width and height.
*/
wn_id1 := Find_Window(Window1);
w := Get_Window_Property(wn_id1,WIDTH);
h := Get_Window_Property(wn_id1,HEIGHT);
/*
** Resize Window2 to the same size
*/
Resize_Window( Window2, w, h );
END;