How to Change the Colors of a Wait Window in FoxPro for MS-DOS

Last reviewed: May 25, 1995
Article ID: Q130605
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, 2.5b, 2.6, 2.6a

SUMMARY

This article shows by example how to change the colors of a WAIT window. You can use the WAIT WINDOW command in FoxPro to display FoxPro system or user-defined messages. The WAIT window belongs to the 'Dialogs' family of FoxPro windows. This family uses color scheme five.

MORE INFORMATION

Color pairs one and three of color scheme five affect the colors of a WAIT window. Color pair one controls the color of normal text, and color pair three controls the window border color. No other color pairs for color scheme five apply to WAIT windows.

The following two examples illustrate how to set the WAIT window colors scheme.

Steps to Follow for Simple Color Change

  1. In the Command window, enter:

    SET COLOR of SCHEME 5 to N/GB,,N/GB

  2. In the Command window, enter:

    WAIT WINDOW 'Hello'

"Hello" is displayed in black-on-cyan text in a black-on-cyan window.

Steps to Follow for Blinking Text

  1. In the Command window, enter:

    SET COLOR of SCHEME 5 to R*/W,,W/R

  2. In the Command window, enter:

    WAIT WINDOW 'Hello'

"Hello" is displayed as blinking, red-on-white text in a red-on-white window. However, the blinking does not occur if FoxPro for MS-DOS is run under Windows.

To restore the color scheme back to the default colors, use this command:

   SET COLOR of SCHEME 5 TO

Additional Notes

When color pairs one and three of color scheme five are changed, the appearance of other system dialogue windows (such as FileOpen, DatabaseSetup, ProgramDo, and others) are also affected. To keep these dialogue windows looking consistent, you need to change some of the color pairs of other color schemes. For example, color pairs two and six of color scheme six control the colors of the 'enabled option' and 'selected item' respectively.


Additional reference words: FoxDos 2.00 2.50 2.50a 2.50b 2.60 2.60a new
different
KBCategory: kbenv kbcode
KBSubcategory: FxenvGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 25, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.