Table of Contents

O4WTextStyle routine

Description

Creates a style based on the specified font.

Syntax

O4WTextStyle( stylename, fontname, bold, italic, align, size )

Parameters

The function has the following parameters:

ParameterDescription
stylenameThe name of the style.
fontNameFont type, e.g. Times New Roman, Arial New.
boldBoolean. 0 = Normal, 1 = Bold
italicBoolean. 0 = Normal, 1 = Italic
alignmentInteger. 0 = Left, 1 = Center, 3 = Right, -1 = Justify
sizeFont size.

Remarks

Returns the style information (to use immediately with a display element or input control), and (if <stylename> is not null) defines the style by the stylename for use with one or more elements and input controls.