DocumentTools[Actions]
EnterText
programmatically perform the action of entering text into a Text Area component
Calling Sequence
Parameters
Description
Examples
Compatibility
EnterText( id, opts )
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.
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.
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.
with⁡DocumentTools:-Actions:
EnterText⁡TextAreaTest,Hello World!
EnterText⁡TextAreaTest,I can accept user input and display
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
Download Help Document