BUG: Black-on-White Disabled Colors Don't Appear Correctly

Last reviewed: April 30, 1996
Article ID: Q121052
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6, 2.6a
  • Microsoft FoxPro for Macintosh, versions 2.5x, 2.6, 2.6a

SYMPTOMS

When the foreground color for disabled radio buttons, check boxes, command buttons, and @ ... GET popups is set to black, it appears as gray. However, black is the only color that doesn't work as expected. Other colors, such as red, appear as expected.

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 as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Copy or type the following code into a program named DISABLE.PRG:

          SET readborder ON
    

          DEFINE WINDOW testwin AT 0.000, 0.000 SIZE 31,91 SYSTEM
          ACTIVATE WINDOW testwin
    

          charvar="Some Text"
          logvar=.F.
    

          @ 2,3 GET charvar DISABLE
          @ 11,3 GET logvar PICTURE "@*C A CheckBox" DISABLE
          @ 19.636,2.143 GET POPUP PICTURE "@^ One;Two;Three";
    
             DEFAULT "One" DISABLE
          @ 25,3 GET charvar
          @ 6,3 GET button1 PICTURE "@*RVN Radio Button";
             DEFAULT 1 DISABLE
          @ 15,3 GET cmdbutton PICTURE "@*HN Command Button";
             DEFAULT 1 DISABLE
    
          READ CYCLE
    
          RELEASE WINDOW testwin
    
    

  2. In the Command window, type the following command:

          SET COLOR OF SCHEME 1 TO ,,,,,,,,,,RGB(0,0,0,255,255,255)
    

    NOTE: This command sets the color of disabled GET objects to black on white.

  3. Run DISABLE.PRG from the Command window by typing the following command:

          DO <path>DISABLE
    

    Note the disabled GET that is the top object in the window. It is black, but the next four disabled GET objects are gray. They should all be black.

  4. Press the ESC key to close the screen.

To see that setting the disabled foreground color to black is not behaving correctly, repeat step 2 above, but change to the SET COLOR OF SCHEME command to the following:

   SET COLOR OF SCHEME 1 TO ,,,,,,,,,,RGB(255,0,0,255,255,255)

This sets the foreground color for disabled GETS to red. When you run DISABLE.PRG, note that all of the disabled GET objects are the correct shade of red.


Additional reference words: FoxMac FoxWin 2.50 2.50a 2.50b 2.50c
2.60 2.60a
buglist2.50
buglist2.50a buglist2.50b buglist2.50c buglist2.60 buglist2.60a colour
KBCategory: kbprg
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: April 30, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.