Microsoft KB Archive/81460

= BUG: Vertical Linear Gauge Loses Upper Border's Bottom Pixels =

Article ID: 81460

Article Last Modified on 10/29/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition

-



This article was previously published under Q81460



SYMPTOMS
The fill area defined by the InnerXXX properties of the Gauge custom control overwrites the bottom-most line of pixels in the top border as defined by the InnerTop property. This behavior occurs only with the vertical linear style gauge.



STATUS
Microsoft has confirmed this to be a bug in the Gauge custom control provided with 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
 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. From the File menu, choose Add File (CTRL+F12). In the Files box, select the GAUGE.VBX custom control file. The Gauge tool will appear in the toolbox.  Add the Gauge control to Form1, and set its properties to the following:   Property    Value BackColor  &H00000000& ForeColor  &H000000FF& InnerTop   1 Style      1 - Vertical Bar   Add the following code to the Gauge_Click event procedure. (Make sure you add this code to the Click event procedure, not the Change event.   Sub Gauge_Click       Gauge1.Value = Gauge1.Max   End Sub                         From the Run menu, choose Start (ALT, R, S) to run the program.</ol>

When you click the Gauge, the top border of the Gauge will disappear.

Note: If you assign the Picture property to a bitmap and change the gauge's Value property to greater than 0, the bottom-most line of pixels in the top border will be redrawn in the Background color.

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

Keywords: kbbug KB81460

-

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

© Microsoft Corporation. All rights reserved.