PANEL statement

Purpose: PANEL draws a colored rectangle.


 Syntax:

 PANEL X1%, Y1%, X2%, Y2%, Fgc%, Bgc%, ASCode%, Clearflag%

 Parameters:

  • X1% Horizontal position of upper left corner of panel.
  • Y1% Vertical position of upper left corner of panel.
  • X2% Horizontal position lower right corner of panel.
  • Y2% Vertical position lower right corner of panel.
  • Fgc% Fore ground color.
  • Bgc% Back ground color.
  • ASCode% ASCII code of character to fill panel.
  • Clearflag% Set Clearflag% to 1 to clear existing text.

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.

Here are links to BCX Console Sample Programs using PANEL statement.

S38.bas  S41.bas