Microsoft KB Archive/123582

{| = How to Reset FoxPro to Default Colors =
 * width="100%"|

ID: Q123582

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, version 2.6a

SUMMARY
At times, it may become necessary to set the FoxPro for MS-DOS colors back to their defaults after using some custom colors. Resetting colors to the FoxPro defaults is accomplished with the SET COLOR command.

How to Set the Colors to the Default
SET COLOR SET TO DEFAULT will use the default FoxPro colors. DEFAULT is one of several color sets that ships with FoxPro.

How to List the Color Sets
To list the color sets that ship with FoxPro for MS-DOS:

1. Choose the Color ... option from the Window menu.

2. Press the Load push button. Several color set names should be listed

including COLOR, COMPQ_COLO, COMPQ_MONO, DEFAULT, MONOCHROME, T5200_COLO, T5200_MONO, and TOSH_3200. How to Re-create the Color Sets If the color sets are missing or the FOXUSER resource file is missing or damaged, it is possible to re-create the color sets. Listed below are three methods you can use to re-create the default color sets:

1. Use the COLOR SET information listed below to re-create the resource file

by using the COLOR PICKER. For example, to re-create the MONOCHROME color set, type the following in the COMMAND WINDOW:

SET COLOR OF SCHEME 1 to ; "W/N,N+/W,W+/N,W+/N,W/N,B+/N,W+/N,N+/N,W+/N,W/N,-"

SET COLOR OF SCHEME 2 to ; "W/N,W+/N,W+/N,W+/N,W/N,N+/W,B+/W,N+/N,W+/N,W/N,-" ...  SET COLOR OF SCHEME 12 to ; "W/N,N+/W,W+/N,W+/N,W/N,B+/N,W+/N,N+/N,W+/N,W/N,-"

Then go into the COLOR PICKER (Window menu, Color ...). Select SAVE, and type MONOCHROME as the color set name. 2. Use the COLOR SET information listed below to create several different CONFIG.FP files, one for each COLOR SET. For example, MONO.FP could contain this code:

COLOR SET = "MONOCHROME" COLOR SCHEME(1) = "W/N,N+/W,W+/N,W+/N,W/N,B+/N,W+/N,N+/N,W+/N,W/N,-" COLOR SCHEME(2) = "W/N,W+/N,W+/N,W+/N,W/N,N+/W,B+/W,N+/N,W+/N,W/N,-" ...  COLOR SCHEME(12) = "W/N,N+/W,W+/N,W+/N,W/N,B+/N,W+/N,N+/N,W+/N,W/N,-" 3. Use a program to allow interactive change of COLOR SETs. Be sure to  start with a MONOCHROME color set, as all COLOR video cards and monitors can display MONOCHROME, but MONOCHROME video cards and monitors cannot display COLOR. This information could be displayed in a POPUP whose VALID could contain code similar to this:

DO CASE CASE user_color = 1 && User picked MONOCHROME SET COLOR OF SCHEME 1 to           "W/N,N+/W,W+/N,W+/N,W/N,B+/N,W+/N,N+/N,W+/N,W/N,-" SET COLOR OF SCHEME 2 to           "W/N,W+/N,W+/N,W+/N,W/N,N+/W,B+/W,N+/N,W+/N,W/N,-" ...        SET COLOR OF SCHEME 12 to            "W/N,N+/W,W+/N,W+/N,W/N,B+/N,W+/N,N+/N,W+/N,W/N,-" CASE user_color = 2 && User picked COLOR ...     CASE user_color = 9 ...  ENDCASE CLEAR && Need to issue CLEAR to paint the Desktop for the chosen colors

Listing of the COLOR SET Name and Its 12 COLOR SCHEMES
COLOR SET NAME: COMPQ_COLO

COLOR SCHEME # 1:

W/N,N+/W,W+/N,W+/N,W/N,N+/W,W+/N,N+/N,W+/N,W/N,- COLOR SCHEME # 2: W/N,W+/N,W+/N,W+/N,W/N,N+/W,N+/W,N+/N,W+/N,W/N,- COLOR SCHEME # 3: N/W,N/W,N/W,W+/N,W/N,W+/N,N+/W,N+/N,W+/N,W/N,- COLOR SCHEME # 4: W/N,W+/N,W+/N,W+/N,W/N,N+/W,N+/W,N+/N,W+/N,W/N,- COLOR SCHEME # 5: W/N,W+/N,W+/N,W+/N,W/N,N+/W,N+/W,N+/N,W+/N,W/N,- COLOR SCHEME # 6: W/N,W+/N,W+/N,W+/N,W/N,N+/W,N+/W,N+/N,W+/N,W/N,- COLOR SCHEME # 7: N/W,N+/W,N/W,N+/W,N/W,W+/N,W+/N,N+/N,N+/W,N/W,- COLOR SCHEME # 8: W/N,W+/N,N/W,N+/W,N/W,N/W,N/W,N+/N,W+/N,W/N,- COLOR SCHEME # 9: W/N,W+/N,W+/N,N+/W,N/W,N/W,N/W,N+/N,W+/N,W/N,- COLOR SCHEME #10: W/N,N+/W,N/W,N+/W,N/W,W+/N,N/W,N+/N,W+/N,W/N,- COLOR SCHEME #11: W+/N,W+/N,N/W,N+/W,N/W,N/W,N/W,N+/N,N+/B,W/N,- COLOR SCHEME #12: W+/B,W+/BG,GR+/B,GR+/B,R+/B,W+/GR,GR+/RB,N+/N,GR+/B,R+/B,+ COLOR SET NAME: COMPQ_MONO COLOR SCHEME # 1:

W/N,N+/W,W+/N,W+/N,W/N,B+/N,W+/N,N+/N,W+/N,W/N,- COLOR SCHEME # 2: W/N,W+/N,W+/N,W+/N,W/N,N+/W,B+/W,N+/N,W+/N,W/N,- COLOR SCHEME # 3: N/W,N/W,N/W,W+/N,N+/W,W+/N,N+/W,N+/N,W+/N,N+/W,- COLOR SCHEME # 4: W/N,W+/N,W+/N,W+/N,W/N,N+/W,B+/W,N+/N,W+/N,W/N,- COLOR SCHEME # 5: W/N,W+/N,W+/N,W+/N,W+/N,N+/W,B+/W,N+/N,W+/N,W/N,- COLOR SCHEME # 6: W/N,W+/N,W+/N,W+/N,W+/N,N+/W,B+/W,N+/N,W+/N,W/N,- COLOR SCHEME # 7: N+/W,N/W,N/W,N+/W,N/W,W+/N,B+/W,N+/N,N+/W,N/W,- COLOR SCHEME # 8: W/N,B+/N,N/W,N+/W,N/W,N/W,B+/N,N+/N,W+/N,W/N,- COLOR SCHEME # 9: W/N,W+/N,W+/N,N+/W,N/W,N/W,N/W,N+/N,N+/W,N/W,- COLOR SCHEME #10: W/N,N+/W,N/W,N+/W,N/W,B+/N,N/W,N+/N,N+/W,N/W,- COLOR SCHEME #11: W+/N,B+/N,N/W,N+/W,N/W,N/W,N/W,N+/N,N+/W,W/N,- COLOR SCHEME #12: W/N,N+/W,W+/N,W+/N,W/N,B+/N,W+/N,N+/N,W+/N,W/N,- COLOR SET NAME: TOSH_3200 COLOR SCHEME # 1:

W/N,N+/W,N+/W,N/W,B/W,N/W,N+/GR,N+/N,G+/N,R/N,- COLOR SCHEME # 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N,N+/W,N/W,- COLOR SCHEME #10: W/N,N+/W,N/W,N+/W,N/W,B+/N,N/W,N+/N,N+/W,N/W,- COLOR SCHEME #11: W+/N,B+/N,N/W,N+/W,N/W,N/W,W/N,N+/N,N/W,W/N,- COLOR SCHEME #12: W/N,N+/W,W+/N,W+/N,W/N,B+/N,W+/N,N+/N,W+/N,W/N,- COLOR SET NAME: T5200_COLO COLOR SCHEME # 1:

W+/B,W+/BG,GR+/B,GR+/B,R+/B,W+/GR,GR+/RB,N+/N,GR+/B,R+/B,+ COLOR SCHEME # 2: BG/W,B/W,N/W,B/W,W/N,N/G,N/W,N+/N,B/W,W/N,+ COLOR SCHEME # 3: BG/W,B/W,BG/N,BG/N,BG/N,N/G,N/W,N+/N,BG/N,BG/N,- COLOR SCHEME # 4: BG/W,B/W,N/W,B/W,W/N,N/G,N/W,N+/N,B/W,W/N,+ COLOR SCHEME # 5: W+/GR,W+/BG,W+/GR,W+/GR,W/GR,W+/N,W/GR,B/N,N/GR,B/GR,+ COLOR SCHEME # 6: B+/B,W+/B,N/GR,W+/RB,W/RB,W+/N,W+/B,B/N,G+/B,B+/B,+ COLOR SCHEME # 7: W+/N,W+/W,W+/N,W+/N,W/R,N/W,W+/N,B/N,RB+/N,B/N,+ COLOR SCHEME # 8: W+/B,W+/GR,W+/W,W+/W,B/W,W+/N,W+/B,B/N,W/B,G/B,+ COLOR SCHEME # 9: R+/B,W+/B,N/B,GR+/W,N+/W,W+/N,W+/BG,B/N,BG+/BG,W/GR,+ COLOR SCHEME #10: W+/B,N/W,W+/W,W+/W,B/W,GR+/N,N/BG,B/N,N/B,G/B,+ COLOR SCHEME #11: W+/B,W+/BG,GR+/B,GR+/B,R+/B,W+/GR,GR+/RB,N+/N,GR+/B,R+/B,+ COLOR SCHEME #12: W+/B,W+/BG,GR+/B,GR+/B,R+/B,W+/GR,GR+/RB,N+/N,GR+/B,R+/B,+ COLOR SET NAME: T5200_MONO COLOR SCHEME # 1:

W/N,N/G,N/W,N/W,B/W,N/W,W+/GR,N+/N,G+/N,R/N,- COLOR SCHEME # 2: B/GR,N/GR,N/GR,B/GR,W/N,W+/B,W+/GR,N+/N,B/W,W/N,- COLOR SCHEME # 3: B/GR,N/GR,BG/N,BG/N,BG/N,W+/B,W+/GR,N+/N,BG/N,BG/N,- COLOR SCHEME # 4: B/GR,N/GR,N/GR,B/GR,W/N,W+/B,W+/GR,N+/N,B/W,W/N,- COLOR SCHEME # 5: G+/N,N/G,BG+/N,N/W,B/W,N/W,W+/N,N+/N,W/N,R/N,- COLOR SCHEME # 6: G+/N,W+/N,W+/N,N/W,B/W,N/W,W+/N,N+/N,G+/N,R/N,- COLOR SCHEME # 7: N/W,W+/W,N/W,N/W,RB/W,BG+/N,W+/W,N+/N,N/W,RB/W,- COLOR SCHEME # 8: W/N,W+/N,N/RB,BG+/RB,BG/RB,N/W,BG+/N,N+/N,W/N,R/N,- COLOR SCHEME # 9: W/N,W+/N,W+/N,N/W,B/W,N/W,W+/N,N+/N,G+/N,R/N,- COLOR SCHEME #10: W/N,W+/B,N/RB,BG+/RB,BG/RB,N/W,W/B,N+/N,G+/N,B/N,- COLOR SCHEME #11: W/N,N/BG,N/RB,BG+/RB,BG/RB,N/W,G/W,N+/N,N/W,B/N,- COLOR SCHEME #12: W+/B,W+/BG,GR+/B,GR+/B,R+/B,W+/GR,GR+/RB,N+/N,GR+/B,R+/B,+ COLOR SET NAME: DEFAULT COLOR SCHEME # 1:

W+/B,W+/BG,GR+/B,GR+/B,R+/B,W+/GR,GR+/RB,N+/N,GR+/B,R+/B,+ COLOR SCHEME # 2: BG/W,N/W,N/W,B/W,W/N,N/BG,W+/W,N+/N,B/W,W/N,+ COLOR SCHEME # 3: BG/W,N/W,BG/N,BG/N,BG/N,N/BG,W+/W,N+/N,BG/N,BG/N,- COLOR SCHEME # 4: BG/W,N/W,N/W,B/W,W/N,N/BG,W+/W,N+/N,B/W,W/N,+ COLOR SCHEME # 5: W+/RB,W+/BG,W+/RB,W+/RB,W/RB,W+/B,GR+/RB,N+/N,W+/RB,W/RB,+ COLOR SCHEME # 6: W/BG,W+/BG,W+/RB,W+/RB,W/RB,W+/B,GR+/RB,N+/N,W+/RB,W/RB,+ COLOR SCHEME # 7: GR+/R,W+/W,GR+/R,W+/R,W/R,W+/N,GR+/R,N+/N,W+/R,W/R,+ COLOR SCHEME # 8: W+/BG,W+/W,GR+/W,GR+/W,N+/W,W+/GR,BG+/BG,N+/N,B/BG,W/BG,+ COLOR SCHEME # 9: W/BG,W+/BG,B/BG,GR+/W,N+/W,W+/GR,W+/B,N+/N,GR+/W,N+/W,+ COLOR SCHEME #10: W+/BG,GR+/B,GR+/W,GR+/W,N+/W,GR+/GR,W+/B,N+/N,GR+/W,N+/W,+ COLOR SCHEME #11: W+/BG,W+/W,GR+/W,GR+/W,N+/W,W+/GR,W/B,N+/N,W+/B,W/BG,+ COLOR SCHEME #12: GR+/R,W+/W,GR+/R,W+/R,W/R,W+/N,GR+/R,N+/N,W+/R,W/R,+ Additional reference words: FoxDos 2.60a default color reset ship KBCategory: kbsetup kbdisplay kbui KBSubcategory: FxsetupGeneral
 * }