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

DocumentTools[Actions]

 ClickValue
 programmatically perform the click action of selecting a value or multiple values of supported components

 Calling Sequence ClickValue( id, selectvalue, opts )

Parameters

 id - {string,symbol}; name of the component selectvalue - {numeric,string,list}; value(s) to be selected nowarning - (optional) truefalse; indicates whether a warning will appear when no Value Changed Code is provided by the user for the component. The default is false.

Description

 • The ClickValue command interacts with a component as if the user used the cursor to click the component.
 • The command is only available for Combo Box, Dial, List Box, Meter, Rotary Gauge, Slider, and Volume Gauge components.
 • The Click Code is executed.
 • This command has no return value.
 • If selectvalue is numeric, it designates the value of the component to select, if present in the component.
 • If selectvalue is a string, it designates the string value of the component to select, if present in the component.
 • If selectvalue is a list, it designates the values of the List Box component to select, if present.
 • Combo Box, Dial, Meter, Rotary Gauge, Slider, and Volume Gauge components do not support list input.

Examples

Here we have a List Box component that displays various expressions to be plotted. Executing the ClickValue command with a relevant expression or expressions will select one or more expressions and update the plot.

 x^2+2*x-1x^4-6x-1-x^2-4*x

You need to open the help page as a worksheet to view how executing the ClickIndex command on the List Box causes the plot to update to the expression selected.

 > $\mathrm{with}\left(\mathrm{DocumentTools}:-\mathrm{Actions}\right):$

Single value:

 > $\mathrm{ClickValue}\left("ListBoxTest","x^4-6"\right)$

List of values:

 > $\mathrm{ClickValue}\left("ListBoxTest",\left["x-1","x^2+2*x-1"\right]\right)$

Here we have a Slider component that represents the exponential value to be displayed in the plot of x^n, where n is the slider value. Executing the ClickValue command with a numeric value will define the value for n and update the plot accordingly.

You need to open the help page as a worksheet to view how executing the ClickValue command on the Slider causes the plot to update based on the exponent value selected.

 > $\mathrm{ClickValue}\left("SliderTest",3\right)$
 > $\mathrm{ClickValue}\left("SliderTest",-2\right)$

Compatibility

 • The DocumentTools:-Actions:-ClickValue command was introduced in Maple 2022.
 • For more information on Maple 2022 changes, see Updates in Maple 2022.