Overview of Item Types
pathName create textarea [option value option value ...]Textareas are one of several widgets that are designed to mirror the functionality and usage of the standard widgets in Java's Abstract Windowing Toolkit (AWT). When textareas are created, they automatically get the tag "Textarea". Textareas have default event handlers which define their behavior. These event handlers are defined on the tag "Textarea" for the "Run" event mode. See the section on Default Bindings for more details about the event bindings.
The following options are supported for textareas:
-editable [18]
True if textarea is editable (default is true)
-fill
[23] Specifies fill color of textarea
-font
[24] Specifies font to use for text
-pen
[45] Specifies pen color of textarea
-text [56]
The whole text within the textarea
text [91]
command that can be used to manipulate textarea items.Text items have default event bindings which can be used for emacs-style editing of them. See the section on Default Bindings for more info.
Warning: The scrollbars on textareas are currently not hooked up to the text within the textarea.
Copyright Computer Science Department, The University of New Mexico