VB Graph Custom Control: BottomTitle Text May Disappear

ID Number: Q81950

1.00

WINDOWS

buglist1.00

Summary:

If the Height property of a graph made with the Graph custom

control is set to less than approximately 1.75 inches (depending on

monitor size and type), the text contained in the BottomTitle will

disappear from the graph.

Microsoft has confirmed this to be a problem with the Graph custom

control supplied with Microsoft Professional Toolkit for Microsoft

Visual Basic programming system version 1.0 for Windows. We are

researching this problem and will post new information here as it

becomes available.

More Information:

Steps to Reproduce Problem

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

1. Run Visual Basic, or from the File menu, choose New Project (ALT,

F, N) if Visual Basic is already running. Form1 is created by

default.

2. From the File menu, choose Add File. In the Files box, select the

GRAPH.VBX custom control file. The Graph tool appears in the

toolbox.

3. Place a Graph control on Form1.

4. Size the Graph control to about 3 inches by 3 inches.

5. Change the Graph BottomTitle property to "This is a test". Notice

that the title, "This is a test", is displayed at the bottom of

the chart.

6. Notice that as you size the form to be shorter, the typeface scales

down automatically. Eventually it will disappear off the graph.

This occurs when the Height property is less than approximately

1.75 inches (depending on monitor size and type), regardless of the

form's ScaleMode setting.

This behavior occurs because the Graph custom control chooses the text

font automatically based on control size. When the smallest size text

font is exhausted, it blanks out the BottomTitle text.

Additional reference words: 1.00