Microsoft KB Archive/156235

= BUG: MODIFY WINDOW SCREEN Does Not Reset BackColor Property =

Article ID: 156235

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q156235



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.



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).

Additional query words: kbvfp500 kbvfp500a kbvfp600

Keywords: kbbug kbprogramming kbui KB156235

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.