STYLE

Top  Previous  Next

 

The STYLE keyword selects the report style to be used, overriding any style selected using the REPORT.STYLE or  SETPTR commands or the QMBasic SETPU statement.

 

 

Format

 

STYLE name

 

where

 

nameis the name of a VOC style record. Use of STYLE NONE will disable use of any style selected using the REPORT.STYLE or  SETPTR commands or the QMBasic SETPU statement.

 

Each line of a report falls into one of the following classifications: Heading, Column heading, Detail, Subtotal, Total, Footing, Other. Report styles allow users to attribute each of these classifications a colour for a displayed report or a font weight for a report directed to a PCL printer. An additional style, Exit, is used to determine how the screen is left on exit from the query processor. If this is absent, the query processor sends the terminfo sgr0 code to turn off all display attributes.

 

Report styles are defined using an X-type VOC record where fields 2 onwards consist of a line classification, foreground colour, background colour and font weight in the form:

Heading=Bright blue,Black,Bold

Only the first character of the line classification name is used. Thus the above line could be written as

H=Bright blue,Black,Bold

 

The colour names are taken from the following list:

Black, Blue, Green, Cyan, Red, Magenta, Brown, White, Grey, Bright Blue, Bright Green, Bright Cyan, Bright Red, Bright Magenta, Yellow, Bright White

 

Any non-alphabetic characters are ignored. Thus Bright Green can also be written as, for example, Bright.Green, Bright-Green or BrightGreen. Numeric colour values of 0 to 15 can be used where these correspond to the order of the colour names above.

 

Note that the colour palette used by AccuTerm may need to be amended from its default settings to improve the rendering of the non-bright colours.

 

Font weights are taken from the list defined in SYSCOM $PCLDATA which defaults to:

Ultra-Thin, Extra-Thin, Thin, Extra-Light, Light, Demi-Light, Semi-Light, Medium, Semi-Bold, Demi-Bold, Bold, Extra-Bold, Black, Extra-Black, Ultra-Black

 

Any non-alphabetic characters are ignored in the same way as for colour names Numeric font weight values in the range -7 to +7 can be used where these correspond to the order of the font weight names above.

 

All components of a style definition are case insensitive.

 

Any classification not defined in the style record, or any omitted component within a classification, takes on the values of the Other classification which itself defaults to White foreground, Black background, Medium font weight if not defined.

 

When the DET.SUP keyword is used, subtotals are reported using the detail line style.

 

 

 

Example

 

X

H=Bright Blue,,Bold

S=Blue

T=Bright Red,,Bold

 

 

See also:

REPORT.STYLE