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

ID: Q121052

2.5x 2.60 2.60a | 2.5x 2.60 2.60a

WINDOWS              | MACINTOSH
kbprg kbbuglist

The information in this article applies to:

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

Keywords          : FxprgGeneral 
Version           : 2.5x 2.60 2.60a | 2.5x 2.60 2.60
Platform          : MACINTOSH WINDOWS

Last Reviewed: May 1, 1996