ChangeCanvas
TheChangeCanvasmethod attaches a canvas to this facet.
void ChangeCanvas (in ODCanvas canvas);
canvas- A reference to a canvas to attach to this facet.
DISCUSSION
This method in turn calls its canvas'sSetFacetmethod to ensure the canvas has a reference back to this facet. After this method executes successfully, you can display this facet and its embedded facets on the specified canvas.
- Mac OS
- It is the caller's responsibility to deallocate the canvas's storage when it is no longer needed.
![]()
EXCEPTIONS
kODErrCanvasHasNoOwner- The offscreen canvas has no owner.
SEE ALSO
TheODCanvas::SetFacetmethod (page 78).
TheODFacet::GetCanvasmethod (page 246).
TheODFacet::HasCanvasmethod (page 250).
"Adding and Removing Canvases" on page 133 in OpenDoc Programmer's Guide.
"Printing the Document" on page 174 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help