Overview of Item Types

Textarea Items

Textarea items are widgets that are used to enter a free form multi-line block of text. They can be edited with emacs-style keys, and copied from and paste to with the mouse. They have horizontal and vertical scrollbars that can be used to edit a larger block of text than can fit in the window. Textareas are created with widget commands of the following form:

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

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


Pad++ Reference Manual - 20 JUN 1997

Copyright Computer Science Department, The University of New Mexico

Web Accessibility