BUG: Button Image on the Toolbar Appears Incomplete (138820)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q138820 SYMPTOMS
Some portions of the image on a toolbar button do not appear and as a
result the button image appears incomplete.
CAUSE
By default, the MaskColor property of the ImageList control is set to
black. This causes the black portions of images on toolbar buttons (or any
other control that uses an ImageList) to be masked out and not appear.
RESOLUTION
Use the color dialog box that appears when you change a color property to
change the MaskColor property of the ImageList that is bound to the toolbar
to color other than black. Toolbar buttons that have already been created
will not change color at design time unless they are refreshed by having
one of their properties modified. However, all buttons will appear
correctly at run time.
STATUS
Microsoft has confirmed this to be an issue in the Microsoft products
listed at the beginning of this article. This problem has been corrected in
the Visual Basic version 4.0a for Windows synchronization release.
REFERENCES
Custom Control Reference in the Visual Basic version 4.0 Help file.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbbug KB138820 |
---|
|