BUG: MODIFY WINDOW SCREEN Does Not Reset BackColor Property

Last reviewed: April 24, 1997
Article ID: Q156235
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a

SYMPTOMS

Using the MODIFY WINDOW SCREEN command to reset the value of the BackColor property of the _SCREEN system variable does not work.

WORKAROUND

You can work around this by issuing the following command:

   _SCREEN.ResetToDefault('BackColor')

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

According to the Help file in Visual FoxPro 5.0, to return the main Visual FoxPro window to its startup configuration, issue the MODIFY WINDOW SCREEN command without any additional clauses. When you do so, it visually resets the _SCREEN BackColor property to the startup color, which is white, but the value of the BackColor property still has the previous value.

Steps to Reproduce Behavior

In the Command window, issue the following commands:

   _SCREEN.BackColor = RGB(192,192,192)
   ? _SCREEN.BackColor    && The value of BackColor is 12632256.
   MODIFY WINDOW SCREEN
   ? _SCREEN.BackColor

_SCREEN.BackColor changes to white visually, but the value of the BackColor property is still 12632256.

Now issue these commands in the Command window:

   _SCREEN.ResetToDefault('BackColor')
   ? _SCREEN.BackColor

The BackColor property is now 16777215 (which is white).


Keywords : buglist5.00 FxprgGeneral kbprg kbui VFoxWin vfpbug5.0a kbbuglist kbprg kbui
Version : 5.0 5.0a
Platform : WINDOWS
Issue type : kbbug


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: April 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.