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.
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
/*
** 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;