FGL_DRAWBOX( )

The FGL_DRAWBOX( ) function displays a rectangle of a specified size.

4GLREF00000085.gif

color is an integer expression that returns a positive whole number, specifying a foreground color code.

height is an integer expression, specifying the number of screen lines occupied by the rectangle.

left-offset is an integer expression, specifying the horizontal coordinate (in characters) of the upper-left corner of the rectangle, where 1 is the first (or left-most) character in a line of the current 4GL window.

line is an integer expression, specifying the vertical coordinate of the upper-left corner, where 1 means the first (or topmost) line.

width is an integer expression, specifying the number of character positions occupied by each line of the rectangle.

The FGL_DRAWBOX( ) function draws a rectangle with the upper left corner at (line, left-offset) and the specified height and width. These dimensions must have positive integer values, in units of lines and character positions, where (0,0) is the upper-left corner of the current 4GL window. The optional color number must correspond to one of the following foreground colors:

Color Number
Foreground Color
0
WHITE

  1.  
YELLOW

  1.  
MAGENTA

  1.  
RED

  1.  
CYAN

  1.  
GREEN

  1.  
BLUE

  1.  
BLACK