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:

[87] -file fileName

(available only for textfile item types)

fileName specifies the filename to read a text file from.

[88] -font fontname

(available only for HTML, portal, text and textfile item types)

Specifies the font to be used for rendering text for this item. fontname must specify a filename which contains an Adobe Type 1 font, or the string "System" which causes the Pad++ line-font to be used. Defaults to "System".


[89] -pen color

(available only for handle, line, polygon, portal, rectangle, spline, text and textfile item types)

Color specifies a color to use for drawing the text characters; it may have any of the forms accepted by Tk_GetColor. It may also be "none", in which case the text will be not be drawn. This option defaults to black.

[90] -text

(available only for textfile item types)
Returns the text in this textfile item. This is a read-only option and can not be set.


July 9, 1996 - 9 JUL 1996

Generated with Harlequin WebMaker

Web Accessibility