Microsoft KB Archive/142830

= BUG: Gauge OCX Has Problems with 256-Color Bitmaps =

Article ID: 142830

Article Last Modified on 12/9/2003

-

APPLIES TO


 * Microsoft Visual Basic 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition

-



This article was previously published under Q142830



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 the gauge's Picture property and set it to a 256 color bitmap. With Windows 3.x or Windows NT, bitmaps called 256color.bmp or Winnt256.bmp exist in the Windows directory. Windows 98 contains Setup.bmp 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 or Windows 98 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.

Keywords: kbbug kbctrl kbpending KB142830

-

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

© Microsoft Corporation. All rights reserved.