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

Online Help

All Products    Maple    MapleSim


DocumentTools[Actions]

  

Click

  

programmatically perform the click action of a Button component

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Click( id, opts )

Parameters

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.

Description

• 

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.

Examples

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.

withDocumentTools:-Actions:

ClickButtonTest

ClickButtonTest

ClickButtonTest

Compatibility

• 

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