A couple of functions can be used to scroll within a window, or to set the size of the scroll increment. You can also define an area of the window to view.
To scroll within a window, either in a direction or to an area:
· Use the IN_SetScrollView function. For a list of scroll options, click Scroll values.
The selected area is displayed.
To set the increment by which you want to scroll:
· Use the IN_SetScrollStep function. The scroll step will be a value between 0 and 1.
The defined scroll value is used by the "step" values of IN_SetScrollView.
To set the viewed area of a page to particular coordinates:
· Use the IN_SetViewWindow function.
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 find out the coordinates of the currently displayed area of the page:
· Use the IN_GetVisiblePageArea function.
The area coordinates are returned.
To be informed when the window is scrolled through the user interface:
· Use the NotifyScroll callback function.
To activate the Pan command:
· Use the IN_SetViewAction function.
This function can also activate the Free Rotate or Zoom commands.
Note: Scrolling in external windows
See also