Slider - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


DocumentTools[Canvas]

  

Slider

  

create a slider canvas element

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Slider(var=val, options)

Parameters

var

-

name

val

-

numeric

bounds=a..b

-

(optional) lower and upper bounds of the slider

continuous=truefalse

-

(optional) continuous increment when moving the slider

Description

• 

The Slider command creates a math entry input with an assignment var := val, with a visible slider.

• 

The bounds option specifies the lower and upper bounds of the slider as a range.   If no bounds are given then the default slider range will be -10..10.  If val is outside the range of these bounds, if negative, the lower bound will be adjusted to match val, otherwise the upper bound will be adjusted to match val.

• 

By default continuous=false, which means that the slider in the Learn interface will snap to the next integer value as it moves left or right.  Setting continuous=true will cause the slider to move to values that are a fractional division of the end points.  

Examples

withDocumentTools:-Canvas:

cvNewCanvasSlider Example,Slidera=4

cv<canvas defaultfontsize='20'><content x='30' y='30'><text>Slider Example</text></content><content align='below:0'><group><math plot='true' result='true' slider='true' hascursor='false' xmlns='http://www.w3.org/1998/Math/MathML'><mrow><mi>a</mi><mspace width = '0.3em'/><mo>:=</mo><mspace width = '0.3em'/><mn>4</mn></mrow></math></group></content></canvas>

(1)

ShareCanvascv

ShowCanvascv

Compatibility

• 

The DocumentTools[Canvas][Slider] command was introduced in Maple 2022.

• 

For more information on Maple 2022 changes, see Updates in Maple 2022.

See Also

Annotate

GetCanvas

GetMath

Math

NewCanvas

Script

ScriptButton

ShareCanvas

ShareCanvas

Text