#
# This demonstration script creates a text widget that illustrates the
# various display styles that may be set for tags.
#
wm title $
w "Text Demonstration - Display Styles"
# Set up display styles
} else {
}
}
}
$
w.
text insert end " You can arrange for lines to be displayed\n"$
w.
text insert end " You can control the vertical\n"$
w.
text insert end "position of text to generate superscript effects like 10"$
w.
text insert end " or\nsubscript effects like X"$
w.
text insert end " You can control the amount of extra space left"$
w.
text insert end " on\neach side of the text:\n"$
w.
text insert end " You can control the spacing of lines with three\n"$
w.
text insert end "separate parameters. \"Spacing1\" tells how much "$
w.
text insert end "extra space to leave\nabove a line, \"spacing3\" "$
w.
text insert end "tells how much space to leave below a line,\nand "$
w.
text insert end "if a text line wraps, \"spacing2\" tells how much "$
w.
text insert end "space to leave\nbetween the display lines that "