VB Graph Custom Control Text Disappears in EGA Video Mode

ID Number: Q81949

1.00

WINDOWS

Summary:

When using the Visual Basic Graph custom control in an EGA video mode

with the Graph control Background property value set to dark gray and

the Foreground property value set to light gray, the text on the graph

will disappear. This is a known problem with Windows version 3.0. This

is not a problem with the Graph custom control or with Visual Basic

1.0 for Windows.

Microsoft has confirmed this to be a problem with Microsoft Windows

versions 3.0 and 3.0a. We are researching this problem and will post

new information here as it becomes available.

More Information:

Windows 3.0 defines dark gray as the color created when red=128,

blue=128, and green=128. Windows defines light gray as the color

created when red=192, blue=192, and green=192.

Windows 3.0 and 3.0a, when given light gray text on a dark gray

background in EGA video mode, will alter the value of the text color

to dark gray (the closest representation it can make in that video

mode). The subsequent dark gray text on a dark gray background makes

it appear as though the text has disappeared.

The Visual Basic Graph custom control allows you to set the background

and foreground colors to 16 predefined colors. Colors 7 and 8 are

light gray and dark gray, respectively. Graph uses Windows values for

dark gray and light gray, and so displays the same video problems as

Windows itself.

Steps to Reproduce Problem

--------------------------

1. Set the video mode of Windows to EGA.

2. Re-enter Windows if necessary and start Visual Basic.

3. In the Visual Basic environment with the VB Graph custom control

loaded, create a form (Form1).

4. Add a Graph custom control (Graph1).

5. Set Graph1.DrawMode=2 (draw).

6. Set Graph1.Background=8 (dark gray) and Graph1.Foreground=7 (light

gray).

The text disappears, leaving colored bars on a dark gray background.

Additional reference words: 1.00