WR O SET STYLESHEET

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 STYLESHEET (area; styleNum; name; font; size; style; color)

ParameterTypeDescription
areaLongint4D Write area
styleNumIntegerStyle sheet number
nameStringStyle sheet title
fontIntegerFont chosen
sizeIntegerSize of chosen font, 0 = No change
styleIntegerStyle sheet used, 0 = No change
colorLongintColor used

Note 6.5: This command was only maintained for compatibility purposes. We recommend using the WR SET STYLESHEET INFO command.

Description

The command WR O SET STYLESHEET modifies the parameters name, font, size, style, and color of the style sheet specified by styleNum.

name is the title of the style sheet and has a maximum of 31 characters.

font is the number of the font used in the specified style sheet. Use the WR Font number function to obtain the number of the font in question.

size is the point size of the font used in the specified style sheet. The value must be between 1 and 127. If you specify a font size large than 127, it will be ignored.

style is expressed as a sum of the styles used. The following is a list of styles and their corresponding codes.

To leave a font attribute unchanged, pass -1 for that attribute.

Note to Version 6.0 Users: The Outline style does not exist in 4D Write 6.5. If you pass its value (8), nothing will happen.

color is a long integer that represents the color of the text. Use the WR RGB to color function to obtain the long integer corresponding to a color. See the WR O GET STYLESHEET command for a list of commonly used colors and their values.

See Also

WR SET STYLESHEET INFO.


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