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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PROPERTY_FALSE Specifies that the property is to be set to the<br />

FALSE state. This applies specifically to the VISIBLE property.<br />

The following constants can be passed as arguments for use with the<br />

WINDOW_STATE property:<br />

NORMAL Specifies that the window is displayed normally according to<br />

the current Width, Height, X Position, and Y Position property settings.<br />

MAXIMIZE Specifies that the window is enlarged to fill the screen<br />

according to the display style of the window manager.<br />

MINIMIZE Specifies that the window is minimized, or iconified.<br />

x Specifies the NUMBER value of the x coordinate or the width, depending<br />

on the property you specified. Specify the argument in form coordinate<br />

system units.<br />

y Specifies the NUMBER value of the y coordinate or the height, depending<br />

on the property you specified. Specify the argument in form coordinate<br />

system units.<br />

Usage Notes<br />

On Microsoft Windows, forms run inside the MDI application window. You can use<br />

SET_WINDOW_PROPERTY to set the following properties of the MDI application window:<br />

• TITLE<br />

• POSITION<br />

• WIDTH, HEIGHT<br />

• WINDOW_SIZE<br />

• WINDOW_STATE<br />

• X_POS, Y_POS<br />

To reference the MDI application window in a call to SET_WINDOW_PROPERTY, use the constant<br />

FORMS_MDI_WINDOW:<br />

Set_Window_Property(FORMS_MDI_WINDOW, POSITION, 5,10)<br />

Set_Window_Property(FORMS_MDI_WINDOW, WINDOW_STATE, MINIMIZE)<br />

SET_WINDOW_PROPERTY restrictions<br />

• If you change the size or position of a window, the change remains in effect for as long as the form<br />

is running, or until you explicitly change the window’s size or position again. Closing the window<br />

and reopening it does not reset the window to its design-time defaults. You must assign the designtime<br />

defaults to variables if you intend to set the window back to those defaults.<br />

SET_WINDOW_PROPERTY examples<br />

/*<br />

** Built-in: SET_WINDOW_PROPERTY<br />

** Example: See FIND_WINDOW<br />

*/<br />

431

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

Saved successfully!

Ooh no, something went wrong!