Slider - Maple Help

DocumentTools[Canvas]

 Slider
 create a slider canvas element

 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

 > $\mathrm{with}\left(\mathrm{DocumentTools}:-\mathrm{Canvas}\right):$
 > $\mathrm{cv}≔\mathrm{NewCanvas}\left(\left["Slider Example",\mathrm{Slider}\left(a=4\right)\right]\right)$
 {\mathrm{cv}}{≔}{"Slider Examplea:=4\left[/itex\right]"} (1)
 > $\mathrm{ShareCanvas}\left(\mathrm{cv}\right)$
 > $\mathrm{ShowCanvas}\left(\mathrm{cv}\right)$

Compatibility

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