BUG: VB Graph Custom Control: BottomTitle Text May Disappear

ID: Q81950


The information in this article applies to:
  • Microsoft Visual Basic Professional Edition for Windows, versions 2.0, 3.0
  • Microsoft Professional Toolkit for Microsoft Visual Basic programming system for Windows, version 1.0


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.


MORE INFORMATION

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


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

Keywords :
Version : WINDOWS:2.0,3.0; :1.0
Platform : WINDOWS
Issue type :


Last Reviewed: January 25, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.