DocumentTools[Actions]
Click
programmatically perform the click action of a Button component
Calling Sequence
Parameters
Description
Examples
Compatibility
Click( id, opts )
id
-
{string,symbol}; name of the Button component
nowarning
(optional) truefalse; indicates whether a warning will appear when no Click Code is provided by the user for the Button component. The default is false.
The Click command interacts with a Button component as if the user clicked it with their cursor.
The Click Code is executed.
This command has no return value.
Here we have a Button component that is set to generate random spheres in the Plot component below it. Executing the Click command will act in the same manner as if the user clicked the Button.
You need to open the help page as a worksheet to view how executing the Click command on the Button causes Click Code to execute and the Plot component to change.
with⁡DocumentTools:-Actions:
Click⁡ButtonTest
The DocumentTools:-Actions:-Click command was introduced in Maple 2022.
For more information on Maple 2022 changes, see Updates in Maple 2022.
See Also
Button Component
DocumentTools
Embedded Components
Download Help Document