ID Number: Q81460
1.00
WINDOWS
buglist1.00
Summary:
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 only occurs with the
vertical linear style gauge. This problem is illustrated in the
program example below.
Microsoft has confirmed this to be a problem with the Gauge custom
control supplied with Microsoft Professional Toolkit for Microsoft
Visual Basic programming system version 1.0 for Windows. We are
researching this problem and will post new information here as it
becomes available.
More Information:
Steps to Reproduce Problem
--------------------------
1. Run 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 (CTRL+F12). In the Files box,
select the GAUGE.VBX custom control file. The Gauge tool will
appear in the toolbox.
3. 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
4. Add the following code to the Gauge_Click event procedure.
(Make sure you add this to the Click event procedure and not the
Change event procedure.)
Sub Gauge_Click ()
Gauge1.Value = Gauge1.Max
End Sub
5. From the Run menu, choose Start (ALT, R, S) to run the program.
Notice that upon clicking 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 reference words: 1.00