version 6.0
WR O CREATE STYLESHEET (area; styleNum; name; font; size; style; color)
| Parameter | Type | Description | |
| area | Longint | 4D Write area | |
| styleNum | Integer | Creation order number of the style sheet | |
| name | String | Style sheet title | |
| font | Integer | Font chosen | |
| size | Integer | Size of chosen font | |
| style | Integer | Style used | |
| color | Longint | Color used |
Note 6.5: This command was only maintained for compatibility purposes. We recommend using the WR Create Stylesheet command.
Description
The command WR O CREATE STYLESHEET creates a new style and inserts the list at the position specified by styleNum. Define the new style sheet by assigning values to the name, font, size, style, and color parameters.
name is the name of the style sheet and can have a maximum of 31 characters.
font is the number of the font. Use the WR O Font name function to obtain the integer corresponding to a font.
size is the point size of the font and must be between 1 and 127. If you specify a font size large than 127, it will be ignored.
style is expressed as the sum of the styles used. See the WR O SET STYLESHEET command for a list of styles and their corresponding codes.
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