BUG: VB Graph Custom Control: BottomTitle Text May Disappear

Last reviewed: June 21, 1995
Article ID: Q81950
The information in this article applies to:

- Professional Edition of Microsoft Visual Basic for Windows,

  versions 2.0 and 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 reference words: 1.00 2.00 3.00 buglist1.00 buglist2.00
buglist3.00
KBCategory: kbprg kbbuglist
KBSubcategory: PrgCtrlsCus


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.