DocumentTools[Canvas]
ShowCanvas
insert a canvas into a document
Calling Sequence
Parameters
Description
Examples
Compatibility
ShowCanvas(canvas)
ShowCanvas(canvas, script)
ShowCanvas(canvas, options)
canvas
-
XML canvas string, or list
script
(optional) DocumentTools:-Canvas:-Script object
size=list(posint)
(optional) default [12,2], number of hidden rows and columns
output=table
(optional) return a component element mapping table
input=list
(optional) list of math expressions to fill in
live_update=truefalse
(optional) default true; update the screen as elements are filled in instead of once after they are all done
entrybox=truefalse
(optional) default true when button present; show a blank box for additional input
layout=grid
(optional) use an alternate grid-based layout that positions content in approximate locations based on fixed-width columns, and rows that do not span cells
The ShowCanvas command displays a canvas where math and text are laid out in columns inside scriptable components.
A "canvas" is an interactive section of a Maple document created by the NewCanvas command, or a shared web-based Maple Learn document. See the Script command for a more complete description.
with⁡DocumentTools:-Canvas:
cv≔NewCanvas⁡Title,Column 1,Column 2,sin⁡x,x+y2:
ShowCanvas⁡cv
The DocumentTools[Canvas][ShowCanvas] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
The DocumentTools[Canvas][ShowCanvas] command was updated in Maple 2022.
The live_update and entrybox parameters were introduced in Maple 2022.
For more information on Maple 2022 changes, see Updates in Maple 2022.
The layout parameter was introduced in Maple 2024.
For more information on Maple 2024 changes, see Updates in Maple 2024.
See Also
Math
NewCanvas
Script
ShareCanvas
Text
Download Help Document