Text Attributes

Table 33-10 lists the attributes for the text widget. The table uses the resource name, which has capitals at internal word boundaries. In Tcl commands, the attributes are specified with a dash and all lowercase:

Table 33-10. Text attribute resource names.
backgroundBackground color (also bg).
borderWidthExtra space around the edge of the text.
cursorCursor to display when mouse is over the widget.
exportSelectionIf true, selected text is exported to the selection.
fontDefault font for the text.
foregroundForeground color (also fg).
heightHeight, in text lines.
highlightBackgroundFocus highlight color when widget does not have focus.
highlightColorColor for input focus highlight border.
highlightThicknessWidth of highlight border.
insertBackgroundColor for the insert cursor.
insertBorderWidthSize of 3D border for insert cursor.
insertOffTimeMilliseconds insert cursor blinks off.
insertOnTimeMilliseconds insert cursor blinks on.
insertWidthWidth of the insert cursor.
padXExtra space to the left and right of the text.
padYExtra space above and below the text.
reliefflat, sunken, raised, groove, ridge, or solid.
selectBackgroundBackground color of selected text.
selectForegroundForeground color of selected text.
selectBorderWidthSize of 3D border for selection highlight.
setGridEnable/disable geometry gridding.
spacing1Extra space above each unwrapped line.
spacing2Space between parts of a line that have wrapped.
spacing3Extra space below an unwrapped line.
stateEditable (normal) or read-only (disabled).
tabsTab stops.
takeFocusControl focus changes from keyboard traversal.
widthWidth, in characters, of the text display.
wrapLine wrap mode: none, char, or word.
xScrollCommandTcl command prefix for horizontal scrolling.
yScrollCommandTcl command prefix for vertical scrolling.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.28.200