BUG: Gauge OCX Has Problems with 256-Color Bitmaps

Last reviewed: October 8, 1996
Article ID: Q142830
The information in this article applies to:
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 16-bit and 32-bit, for Windows, version 4.0

SYMPTOMS

Although both the 16- and 32-bit versions of the Gauge OCX allow you to specify a 256-color bitmap for the Picture property, in many cases this bitmap is not displayed correctly.

STATUS

Microsoft has confirmed this to be an issue in the Microsoft products listed at the beginning of the article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

This problem also occurs when running a video driver with a color depth of more than 256 colors.

Steps to Reproduce

  1. Start Visual Basic, or if it is already running, choose New Project from the File menu.

  2. If the Gauge OCX is not in the Toolbox, right click on the Toolbox and select 'Custom Controls' from the pop-up menu. In the Custom Controls dialog box, double click on the entry labeled 'MicroHelp Gauge Control' and click OK to add the Gauge control.

  3. Click and drag a new Gauge control onto the form.

  4. Double click on the gauge's Picture property and set it to a 256 color bitmap. With Windows 3.x or Windows NT, a bitmap called 256color.bmp exists in the Windows directory. No corresponding 256 color bitmap comes with Windows 95; however, many bitmaps of this nature are included in Microsoft Plus! for Windows 95 as well as with different third-party software programs. In some cases changing the Picture property is all it takes to replicate the problem. The bitmap will not display correctly on the form. If the bitmap displays correctly initially, running the program and switching between different applications and the desktop will demonstrate the problem.


Additional reference words: 4.00 vb4win vb4all
KBCategory: kbprg kbbuglist
KBSubcategory: PrgCtrlsCus


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 8, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.