PANEL statement

Purpose:

PANEL draws a colored rectangle.

Syntax:

PANEL X1 AS INTEGER, _
      Y1 AS INTEGER, _
      X2 AS INTEGER, _
      Y2 AS INTEGER, _
     Fgc AS INTEGER, _
     Bgc AS INTEGER, _
  ASCode AS INTEGER, _
Clearflag AS INTEGER

Parameters:

  • Data type: INTEGER
    X1 horizontal position of upper left corner of panel.
  • Data type: INTEGER
    Y1 vertical position of upper left corner of panel.
  • Data type: INTEGER
    X2 horizontal position lower right corner of panel.
  • Data type: INTEGER
    Y2 vertical position lower right corner of panel.
  • Data type: INTEGER
    Fgc foreground color.
  • Data type: INTEGER
    Bgc background color.
  • Data type: INTEGER
    ASCode Windows Code Page code point of character to fill panel.
  • Data type: INTEGER
    Clearflag set to 1 (one) to clear existing text.

Remarks:

This statement works only in console mode programs. The CALL PANEL syntax used in S38.bas requires parentheses for the statement arguments. The CALL PANEL syntax used in S38.bas will work with many BCX statements, but not all.

BCX Console Sample Programs using the PANEL statement.