Overview of Item Types
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:
(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.
Generated with Harlequin WebMaker