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.

GET_VIEW_PROPERTY built-in<br />

Description<br />

Returns the indicated property setting for the indicated canvas.<br />

Syntax<br />

FUNCTION GET_VIEW_PROPERTY<br />

(view_id ViewPort,<br />

property NUMBER);<br />

FUNCTION GET_VIEW_PROPERTY<br />

(view_name VARCHAR2,<br />

property NUMBER);<br />

Built-in Type unrestricted function<br />

Returns VARCHAR2<br />

Enter Query Mode yes<br />

Parameters<br />

view_id Specifies the unique ID that <strong>Form</strong> <strong>Builder</strong> assigns the canvas when it<br />

creates the object. Use the FIND_VIEW built-in to return the ID to an<br />

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

view_name Specifies the name that you gave the object when defining it.<br />

property Specifies the property whose state you want to get for the given canvas.<br />

You must make a separate call to GET_VIEW_PROPERTY for each<br />

property you need, as shown in the example. You can enter one of the<br />

following constants to obtain return values:<br />

240<br />

DIRECTION Returns the layout direction for bidirectional objects. Valid<br />

return values are RIGHT_TO_LEFT, LEFT_TO_RIGHT.<br />

HEIGHT Returns the height of the view. For a content view, the height of<br />

the view is actually the height of the window in which the view is currently<br />

displayed. The size of each unit depends on how you defined the<br />

Coordinate System property for the form module.<br />

VIEWPORT_X_POS For a stacked canvas, returns the x coordinate that<br />

reflects the current placement of the view’s upper left corner relative to the<br />

upper left corner of the window’s current content canvas. For a content<br />

view, returns 0. The value is returned as a VARCHAR2 and is expressed in<br />

the units defined by the form module Coordinate System property.<br />

VIEWPORT_Y_POS For a stacked canvas, returns the y coordinate that<br />

reflects the current placement of the view’s upper left corner relative to the<br />

upper left corner of the window’s current content canvas. For a content<br />

view, returns 0. The value is returned as a VARCHAR2 and is expressed in<br />

the units defined by the form module Coordinate System property.<br />

VIEWPORT_X_POS_ON_CANVAS Returns the x coordinate that<br />

reflects the current placement of the view’s upper left corner relative to the

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

Saved successfully!

Ooh no, something went wrong!