Scrolling

 

You can find out and change what area of the image is displayed within a document window boundary.

To find out the coordinates of the currently displayed area of the page:

· Use the GetVisiblePageArea transaction.

The area coordinates are returned.

To set the viewed area of a page to particular coordinates:

· Use the SetViewWindow transaction. You set the docwinID, units, and coordinate values.

The specified area will be visible, but there may be additional area shown because of the difference between the aspect ratio of the window and that of the specified area.

To be informed when the window is scrolled through the user interface:

· Register the NotifyIM -- Scroll notification.

To set the position of a particular layer on a page:

· Use the FitLayerToWindow transaction. You can also set the layer's scale factor with this transaction.

To scroll within a window, either in a direction or to an area:

· Use the SetScrollView transaction. 25 different scroll modes are available.

The selected area is displayed.

To set the increment by which you want to scroll:

· Use the SetScrollStep(docwinID, scrollStep) transaction. The scrollStep is a floating value between 0 and 1.

The defined scroll value is used by the "step" scroll mode values of the SetScrollView transaction.

You can also define the display of scroll bars.

To define whether a specific page is displayed with scroll bars:

· Use the SetPageScrollBars transaction.

The page will be displayed as defined.

image\tips.gif Tip: Scrolling in external windows

See also