Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_box() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_BOX()

 DESCRIPTION

 The C_BOX() function draws five different styles of boxes for a
 given set of coordinates.  An optional color can be specified and
 the color can be used as either an outline or for the entire box.
 Up to nine horizontal lines can be specified to draw and connect at
 the given row coordinates.  The horizontal lines can be used as
 bars across the box to help divide information on the screen.

 SYNTAX

 C_BOX(st_row, st_col, end_row, end_col [,box_type] [,color] [,fill]
 [,line_type] [,line1]...[,line9])

 PARAMETERS

 st_row (N), st_col (N), end_row (N), and end_col (N) define the
 upper left and lower right coordinates for the box.

 box_type (N) is the box type (1 - 5) to draw.  If box_type is not
 specified, box type 2 (double) is used.  The box types are as
 follows:

 BOX TYPE     DESCRIPTION
 --------     -----------
 0            No box
 1            Single top/bottom, single sides
 2            Double top/bottom, double sides
 3            Double top/bottom, single sides
 4            Single top/bottom, double sides
 5            Solid graphics characters

 color (C) is the color to display the box.  If color is not specified,
 the current Clipper color is used.

 fill (L) indicates whether the area inside of the box should be
 filled with color or just the outer lines of box.  Specify true
 (.T.) to fill the inside area, or false (.F.) to color only the
 outer lines.  If fill is not specified, the inside of the box will
 be filled.

 line_type (N) is the type of line to draw for the optional
 horizontal lines inside of the box.  Specify 1 for a single line or
 2 for a double line.  If line_type is not specified, a single line
 is used.  Note that if box type 5 is used, the inside lines are
 always displayed in a graphics block regardless of what is
 specified for this option.

 line1...line9 (N) are the row coordinates for the optional
 horizontal lines inside of the box.  The lines are automatically
 connected with the correct box character to the outer box lines.
 Up to nine (9) rows can be specified for one box.

 RETURNS

 There is no return value.

 EXAMPLES

 c_box(10,10,20,70)        && Single lined box in current colors

 && Double box in white/blue with 2 single lines inside of box at
 && rows 12 and 18.
 c_box(10,10,20,70,2,"W/B",.t.,1,12,18)


See Also: C_FILL() C_LINE() C_VLINE() C_BOXATTR() C_BOXCHAR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson