To programmatically display a stacked canvas in the window to which it
is assigned:
o
Use the SHOW_VIEW built-in procedure. (Note that
a stacked canvas' Visible property is set to No by default.)
To scroll a stacked canvas so that a different region of the canvas is
visible:
o
Use the built-in procedure SCROLL_VIEW (which
moves the view relative to its canvas).
To move the stacked canvas to a different location on the underlying
content canvas:
o
Use the built-in procedure SET_VIEW_PROPERTY
(which changes the canvas' Viewport Position property). Note that this will not
change the region of the canvas that is visible in the view.
To increase the dimensions of a stacked canvas' view (so that more of
the canvas is visible):
o
Use the built-in procedure SET_VIEW_PROPERTY.
Note that increasing the of the view does not change the X,Y coordinates of its
upper-left corner on the stacked canvas, nor does it change the position of the
view itself relative to the underlying content canvas.
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);