EnterText - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


DocumentTools[Actions]

  

EnterText

  

programmatically perform the action of entering text into a Text Area component

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

EnterText( id, opts )

Parameters

id

-

{string,symbol}; name of the Text Area component

text

-

(optional) string; string to be entered into the Text Area component. If no string is provided, the Content Changed Code is executed without any changes to the Text Area's contents.

nowarning

-

(optional) truefalse; indicates whether a warning will appear when no Content Changed Code is provided by the user for the Text Area component. The default is false.

Description

• 

The EnterText command interacts with a Text Area component as if the user entered the string with their cursor and keyboard.

• 

The Content Changed Code is executed.

• 

This command has no return value.

Examples

Here we have a Text Area component and the Content Changed Code is set to display the entered text in the label below. Executing the EnterText command with a string will update the Label to display the string.

 

You need to open the help page as a worksheet to view how executing the EnterText command will cause the Label to update based on the string entered.

withDocumentTools:-Actions:

EnterTextTextAreaTest,Hello World!

EnterTextTextAreaTest,I can accept user input and display

Compatibility

• 

The DocumentTools:-Actions:-EnterText command was introduced in Maple 2022.

• 

For more information on Maple 2022 changes, see Updates in Maple 2022.

See Also

DocumentTools

Embedded Components

Text Area