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

(1)

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

 


Download Help Document