WR O GET 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 GET ATTRIBUTES (area; font; size; style; color)

ParameterTypeDescription
areaLongint4D write area
fontIntegerReceives font number
sizeIntegerReceives font size
styleIntegerReceives font style
colorLongintReceives font color

Note 6.5: This command was only maintained for compatibility purposes. We recommend using the WR Get text property command to manage the sizes, styles and colors and the

WR Get font command to manage fonts.

Description

The command WR O GET ATTRIBUTES returns into the variables font, size, style, and color the attributes of the selected text in Area. If the selected text in area contains more than one font, size, style, or color, WR O GET ATTRIBUTES returns -1 for that attribute.

font is the ID of the font in your system. This is the same value that is returned by WR O Font number. You can use the WR Font name function to determine the name of the font.

size is the size in points of the selected text.

style is a composite number that results from the addition of several style numbers. Style numbers are shown in the following list:

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

color is a long integer that represents the color of the text. This number can be used in the WR O SET ATTRIBUTES command to set other text to the same color.

See Also

WR Get font, WR Get 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