Microsoft KB Archive/81461

= BUG: InnerBottom/InnerRight Defines Gauge Fill Area Badly =

Article ID: 81461

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 Q81461



SYMPTOMS
When you add the Gauge custom control to a form, the fill area defined by the InnerXXX properties is incorrect. Specifically, the InnerBottom sets the bottom border (InnerBottom - 1) pixels from the bottom-most position of the control. Similarly, the InnerRight property sets the right border (InnerRight - 1) pixels from the rightmost position of the control. This behavior occurs only in the InnerBottom and InnerRight properties.



WORKAROUND
To work around the problem, set InnerRight to (InnerLeft - 1) and InnerBottom to (InnerTop - 1) to create symmetrical borders. Note that in order to create a border of set width, you must account for the aspect ratio of your video display.



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
 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 the gauge's properties as follows:   Properties    Values ---

InnerBottom  1 InnerLeft    1 InnerRight   1 InnerTop     1 ForeColor    &H000000FF& (Red) Value        100 

Notice that the bottom and right borders have completely disappeared. This problem can also be illustrated by setting BackColor and ForeColor to different colors. When InnerLeft is equal to InnerRight, the left and right borders are not symmetrical. The same holds true for the InnerTop and InnerBottom properties.

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

Keywords: kbbug KB81461

-

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

© Microsoft Corporation. All rights reserved.