Condividi tramite


@ ... FILL Command

Changes the colors of existing text within an area of the screen.

@ nRow1, nColumn1 FILL TO nRow2,
  nColumn2[COLOR SCHEME nSchemeNumber
COLOR ColorPairList]

Parameters

  • @ nRow1, nColumn1
    Specifies the upper-left corner of the area to change.

  • FILL TO nRow2, nColumn2
    Specifies the lower-right corner of the area to change.

  • COLOR SCHEME nSchemeNumber
    Specifies the color of the area. Only the first color pair in the specified color scheme determines the color of the area.

  • COLOR ColorPairList
    Specifies the color of the area. Only the first color pair in the specified color pair list determines the color of the area.

    If you omit the COLOR SCHEME or COLOR clauses, the rectangular portion is cleared. An area can also be cleared with @ ... CLEAR.

Remarks

This command changes the colors of text within a rectangular area of the main Visual FoxPro window or the active user-defined window. You can set the foreground and background color attributes for existing text only. Any text output to the same area after you issue @ ... FILL appears in the default screen or window colors.

Example

The following example clears the main Visual FoxPro window and fills an area with color.

ACTIVATE SCREEN
CLEAR
@ 4,1 FILL TO 10, 8 COLOR GR+/B

See Also

Reference

@ ... SAY Command

ColorScheme Property

FillColor Property (Visual FoxPro)

Other Resources

Commands (Visual FoxPro)