Overview of Item Types
pathName create textfield [option value option value ...]Textfields 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 textfields are created, they automatically get the tag "Textfield". Textfields have default event handlers which define their behavior. These event handlers are defined on the tag "Textfield" for the "Run" event mode. See the section on Default Bindings for more details about the event bindings.
The following options are supported for textfields:
-editable [18]
True if textfield is editable (default is true)
-fill
[23] Specifies fill color of textfield
-font
[24] Specifies font to use for text
-pen
[45] Specifies pen color of textfield
-text [56]
The whole text within the textfield
text [91]
command that can be used to manipulate textfield 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.
Copyright Computer Science Department, The University of New Mexico