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

Scrolling a Window Programmatically

When you scroll a window programmatically, you actually change the position of the view on the window's canvas (i.e., changing the Viewport X Position on Canvas and Viewport Y Position on Canvas property settings).

To scroll a window programmatically, use one of two Built-in procedures:

Dynamic Scrolling

When end users or the application navigate among items, Oracle Forms always keeps the target item visible to the end user. If necessary, Oracle Forms will automatically scroll a canvas to bring the target item within the view. For example, when an end user presses [Next Item] (Tab) to move to an item that is on the same canvas but currently outside the window, Oracle Forms dynamically scrolls the canvas to make the target item visible.

The only exception to this rule is if the end user or the application scrolls the window explicitly, rather than in response to navigation. In this case, Oracle Forms does allow the item that currently has input focus to be scrolled out of the view. However, the next navigational event will again cause the target item to be scrolled within the view.

Scrolling a window programmatically: Examples

/*

** Example 1: This procedure call scrolls a window's content
** canvas horizontally to X,Y coordinates 14 and 10:

SCROLL_VIEW('my_con_view', 14, 10);

** Example 2: These 2 procedure calls also reposition the content
** canvas' view to X,Y coordinates 14 and 10:

SET_VIEW_PROPERTY('my_con_view', x_pos_on_canvas, 14);
SET_VIEW_PROPERTY('my_con_view', y_pos_on_canvas, 10);

*/


SCROLL_VIEW Built-in

SET_VIEW_PROPERTY Built-in