Microsoft KB Archive/81950

= BUG: VB Graph Custom Control: BottomTitle Text May Disappear =

Article ID: 81950

Article Last Modified on 2/23/2007

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Windows 2000 Readiness Analyzer

-



This article was previously published under Q81950



SYMPTOMS
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) in versions 1.0 and 2.0 or less than approximately .75 inches in version 3.0, the text contained in the BottomTitle will disappear from the graph.



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



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Problem

 * 1) Start 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 &quot;This is a test.&quot; Notice that the title, &quot;This is a test,&quot; 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.

Additional query words: 1.00 2.00 3.00 buglist1.00 buglist2.00 buglist3.00

Keywords: kbbug KB81950

-

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

© Microsoft Corporation. All rights reserved.