Previous: BLOX.BTextAttributes-colors, Up: BLOX.BTextAttributes


1.43.3 BLOX.BTextAttributes: setting attributes

backgroundColor
Answer the value of the backgroundColor option for the text.

Specifies the background color to use when displaying text with these attributes. nil indicates that the default value is not overridden.


backgroundColor: color
Set the value of the backgroundColor option for the text.

Specifies the background color to use when displaying text with these attributes. nil indicates that the default value is not overridden.


center
Center the text to which these attributes are applied


events
Answer the event bindings which apply to text subject to these attributes


events: aBTextBindings
Set the event bindings which apply to text subject to these attributes


font
Answer the value of the font option for the text. The font can be given as either an X font name or a Blox font description string, or nil if you want the widget's default font to apply.

X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.

Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.


font: fontName
Set the value of the font option for the text. The font can be given as either an X font name or a Blox font description string, or nil if you want the widget's default font to apply.

X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.

Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.


foregroundColor
Answer the value of the foregroundColor option for the text.

Specifies the foreground color to use when displaying text with these attributes. nil indicates that the default value is not overridden.


foregroundColor: color
Set the value of the foregroundColor option for the text.

Specifies the foreground color to use when displaying text with these attributes. nil indicates that the default value is not overridden.


isCentered
Answer whether the text to which these attributes are applied is centered


isStruckout
Answer whether the text to which these attributes are applied is struckout


isUnderlined
Answer whether the text to which these attributes are applied is underlined


strikeout
Strike out the text to which these attributes are applied


underline
Underline the text to which these attributes are applied