@...TO

From Recital Documentation Wiki
Jump to: navigation, search

Purpose

Draw a box or line on the screen


Syntax

@ <expN1>,<expN2> TO <expN3>,<expN4>

[BOLD]

[COLOR <color code> | COLOR SCHEME <color scheme>]

[DOUBLE | SINGLE | PANEL | BOX <expC>]

[FILL <expC>]

[LABEL <expC>]

[REVERSE]

[SHADOW]


See Also

@...BOX, @...CLEAR, @...GET, @...FILL, @...MENU, @...PROMPT, @...SAY, @...SCROLL, COL(), MENU AT, MENU FRAME, ROW(), SET COLOR, SET COLOR OF


Description

This command is used to draw a box or a line. If you omit the optional clauses, the box is drawn with single lines.

<expN1>, <expN2> TO <expN3>, <expN4>

The top left corner is specified at row <expN1>, column <expN2> and a bottom right corner at row <expN3>, column <expN4>. If the two row coordinates are the same, a horizontal line is drawn. If the two column coordinates are the same, a vertical line is drawn.

BOLD

If the BOLD keyword is specified, then the contents of the box are displayed in highlighted reverse video.

COLOR <color> | COLOR SCHEME <color-scheme>

The optional COLOR <color> clause will set the foreground, background or both colors when the color code is specified. These are the same codes used by SET COLOR. If you do not provide color codes, this command uses the <standard> colors as defined in the SET COLOR command. The COLOR SCHEME <color scheme> takes a color scheme from a set of 10 predefined color pairs. The color pairs in a color scheme can be changed with the SET COLOR OF SCHEME command. The color scheme number should be specified in <color scheme>.

DOUBLE | SINGLE | PANEL | BOX <expC>

If SINGLE is specified, then the box is drawn with a single line border. If DOUBLE is specified, then the box is drawn with a double-line border. If PANEL is included, the box is drawn with a solid border. The BOX <expC> specifies characters to use to draw the box. The <expC> is a string of up to nine characters. The characters define the top-left corner, top row, top-right corner , right side, bottom right corner, bottom row, bottom left corner, left side and the inside of the box, in that order.

LABEL <expC>

The LABEL clause draws a box with the specified title, <expC>.

REVERSE

If the REVERSE keyword is specified then the contents of the box are displayed in reverse video.

SHADOW

The SHADOW keyword shades the right hand side and bottom edge of the box, producing a 3D effect.


Example

@05,00 to 08,79 box "123456789"


Products

Recital