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

Manipulating a Stacked Canvas Programmatically

To programmatically display a stacked canvas in the window to which it is assigned:

To scroll a stacked canvas so that a different region of the canvas is visible:

To move the stacked canvas to a different location on the underlying content canvas:

To increase the dimensions of a stacked canvas' view (so that more of the canvas is visible):

Manipulating a stacked canvas programmatically: Examples

/* Example 1: These 2 procedure calls both display the stacked

** canvas STACK_IT:
*/
SHOW_VIEW('stack_it');
SET_VIEW_PROPERTY('stack_it', visible, property_true);

/* Example 2: This procedure call scrolls the view of the stacked
** canvas STACK_IT to X,Y coordinates 12 and 0:
*/
SCROLL_VIEW('stack_it', 12, 0);

/* Example 3: This procedure call changes the position of the
** stacked canvas STACK_IT to X,Y coordinates 12 and 20 on the
** underlying content canvas:
*/
SET_VIEW_PROPERTY('stack_it', display_position, 12, 20);

/* Example 4: This procedure call increases the width of the view,
** thereby making more of the canvas visible:
*/
SET_VIEW_PROPERTY('stack_it', width, 22);