IntroductionMTB StatementsFile SystemCompilerApplicationsReference GuideIndex

Setting window colors

Typically, Comet windows are created with a different color scheme than the underlying display. This is done with the Change Colors mnemonic.

Also see Screen Colors.

Example:

  PRINT (0) (Create Window=2,3,70,20)
  PRINT (0) (Change colors="@0F@","@A0@","@00@","@C0@","@00@")

The first PRINT statement creates a window from column 2, row 3 (the upper left corner) to column 70, row 20 (the lower right corner). The second PRINT statement changes the color of the window as follows:

Type Result
Foreground black field (0) with bright white characters (F)
Background light green field (A) with black characters (0)
Invisible black field (0) with black characters (0)
Border light red (C)
Entry black field (0) with black characters (0)


Comet Windows