Overview of Item Types

Textfile Items

A textfile item displays a string of characters on the screen in one or more lines as with text items, but the text is loaded in from a file. Textfile items are supported by the Pad++ text command. Textfile items are created with widget commands of the following form:

pathName create textfile [option value option value ...]

There may be any number of option-value pairs, each of which sets one of the configuration options for the item. These same option-value pairs may be used in itemconfigure widget commands to change the item's configuration. The following options are supported for text items:

-file [22] File an item should be defined by

-font [24] Specifies font to use for text

-pen [45] Specifies pen color of item

-text [56] (Read-only) The text of any item containing text

-writeformat [69] Controls whether disk-based item is written out by copy or reference

Note that when the -width or -height of a textfile item is set, the textfile item is clipped to those dimensions rather than being squashed or stretched as most items are.

Also, see the text [91] command that can be used to manipulate text 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