PRB: Current Output Window Painted with Inactive Color Scheme

Last reviewed: June 27, 1995
Article ID: Q88669
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 1.02, 2.0, 2.5, and 2.5a
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SYMPTOMS

A window activated with the ACTIVATE WINDOW <window name> BOTTOM command may not have an active color scheme.

RESOLUTION

This behavior is expected and by design. Even though the window has been activated and it is the current output window, it is not painted using the active window color scheme until it is moved to the top of the window stack.

MORE INFORMATION

The following code illustrates this situation. When Window B is activated on the bottom of the window stack, Window A retains the active color scheme.

   CLEAR
   DEFINE WINDOW A FROM 5,5 TO 15,30 TITLE "WINDOW A"
   ACTIVATE WINDOW A
   DEFINE WINDOW B FROM 2,2 TO 18,33 TITLE "WINDOW B"
   ACTIVATE WINDOW B BOTTOM
   @ 0,5 SAY "I'M THE OUTPUT WINDOW"
   WAIT WINDOW
   RELEASE WINDOW B
   RELEASE WINDOW A


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.