11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RESIZE_WINDOW built-in<br />

Description<br />

Changes the size of the given window to the given width and height. A call to RESIZE_WINDOW sets<br />

the width and height of the window, even if the window is not currently displayed. RESIZE_WINDOW<br />

does not change the position of the window, as specified by the x and y coordinates of the window’s<br />

upper left corner on the screen.<br />

On Microsoft Windows, you can resize the MDI application window by specifying the constant<br />

FORMS_MDI_WINDOW as the window name.<br />

You can also resize a window with SET_WINDOW_PROPERTY.<br />

Syntax<br />

PROCEDURE RESIZE_WINDOW<br />

(window_id Window,<br />

width NUMBER,<br />

height NUMBER);<br />

PROCEDURE RESIZE_WINDOW<br />

(window_name VARCHAR2,<br />

width NUMBER,<br />

height NUMBER);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

window_id Specifies the unique ID that <strong>Form</strong> <strong>Builder</strong> assigns the window when<br />

created. Use the FIND_WINDOW built-in to return the ID to an<br />

appropriately typed variable. The data type of the ID is Window.<br />

window_name Specifies the name that you gave the window when creating it. The data<br />

type of the name is VARCHAR2.<br />

width Specifies the new width of the window, in form coordinate units.<br />

height Specifies the new height of the window, in form coordinate units.<br />

RESIZE_WINDOW examples<br />

344<br />

/*<br />

** Built-in: RESIZE_WINDOW<br />

** Example: Set Window2 to be the same size as Window1<br />

*/<br />

PROCEDURE Make_Same_Size_Win( Window1 VARCHAR2, Window2<br />

VARCHAR2) IS<br />

wn_id1 Window;<br />

w NUMBER;<br />

h NUMBER;<br />

BEGIN<br />

/*<br />

** Find Window1 and get it’s width and height.<br />

*/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!