WR O SET ATTRIBUTES

4D - Documentation   Français   English   German   4D Write, Command Theme List   4D Write, Command Alphabetical List   4D Write, Constant Theme List   Back   Previous   Next

version 6.0


WR O SET ATTRIBUTES (area; font; size; style; color)

ParameterTypeDescription
areaLongint4D Write area
fontIntegerFont number
sizeIntegerFont size
styleIntegerFont style
colorLongintFont color

Note 6.5: This command was only maintained for compatibility purposes. We recommend using the WR SET TEXT PROPERTY command to manage font sizes, styles and colors and the

WR SET FONT command to manage fonts.

Description

The command WR O SET ATTRIBUTES sets the attributes of the selected text in area to the values described by font, size, style, and color. If you want to leave one of the attributes unchanged, pass -1 for that attribute.

font is the ID of the font in your system. This value can be obtained by the WR O Font number function.

size is the size of the font expressed in points.

style is the style of the font expressed as a sum of style numbers. The following is a list of style numbers:

When styles are set for a selection of text, each style is applied separately and the selection is affected by the following conditions:

A style is in effect for the entire selection, such as bold or italic. WR O SET ATTRIBUTES applies that style number and that style is deselected throughout the selection.

A style is not in effect anywhere in the selection. WR O SET ATTRIBUTES applies that style number throughout the selection.

A style is in effect for only part of the selection. WR O SET ATTRIBUTES applies that style throughout the selection.

Note to Version 6.0 Users: The Outline style does not exist in 4D Write 6.5. Passing its value (8) has no effect.

color is a long integer that represents the color of the text. The following is a list of commonly used colors and their values:

See Also

WR SET FONT, WR SET TEXT PROPERTY.


4D - Documentation   Français   English   German   4D Write, Command Theme List   4D Write, Command Alphabetical List   4D Write, Constant Theme List   Back   Previous   Next