BUG: Button Image on the Toolbar Appears IncompleteLast reviewed: May 7, 1996Article ID: Q138820 |
The information in this article applies to:
SYMPTOMSSome portions of the image on a toolbar button do not appear and as a result the button image appears incomplete.
CAUSEBy 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.
RESOLUTIONUse 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.
STATUSMicrosoft 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.
MORE INFORMATION
Steps to Reproduce Behavior
Every image in an ImageList collection has a corresponding mask associated with it. The mask is a monochrome image derived from the image itself, automatically generated using the MaskColor property as the specific color of the mask. This mask is not used directly, but is applied to the original bitmap in graphical operations such as the Overlay and Draw methods. For example, the MaskColor property determines which color of an image will be transparent in the Overlay method.
REFERENCESCustom Control Reference in the Visual Basic version 4.0 Help file.
|
Additional reference words: 4.00 4.00a ImageList MaskColor vb4all vb4win
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |