Overview of Item Types

Textfield Items

Textfield items are widgets that are used to enter a free-form single line of text. They can be edited with emacs-style keys, and copied from and paste to with the mouse. Textfields are much like textareas, but are limited to one line. Textfields are created with widget commands of the following form:

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

Also, see the 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.


Pad++ Reference Manual - 20 JUN 1997

Copyright Computer Science Department, The University of New Mexico

Web Accessibility