Re: menuitem bitmap problems





On Nov 25, 8:18 pm, "Bob Richardson" <bobr at whidbey dot com> wrote:
<snip>
To get these flags, I've taken larger flags BMPs, resized them to
approximately 26 x 13 pixels, and saved them to another BMP file. In Delphi
5 I click the Bitmap property's ellipsis to open the Picture Editor. Then,
click Load, find the flag BMP file, and click OK. It shows up correctly in
the Picture Editor window. When I click OK on the Picture Editor window,
something happens to the BMP. It doesn't appear correctly in the menu item.
<snip>

I think the bitmaps may have to be 16 x 16. You may be able to use a
bigger bitmap if you use owner-draw of the menu-item. Or you might be
able to use a larger bitmap if you place it with an API call and
enuItemInfo structure.

Try a 16 x 16 bitmap to see if that solves it.

Alan Lloyd

.



Relevant Pages

  • Re: VB3 is making my head spin!
    ... If you are running at less than full colour depth (16 bit ... machine running at full colour depth will save it as a 24 bit bmp file). ... It is this "what would the depth be of a bitmap that you saved to disk ... Perhaps you have misunderstood the 8 bit colour palette business. ...
    (comp.lang.basic.visual.misc)
  • Re: Displaying Long Binary Data in a Report
    ... in Acess you are inserting the BMP file as an OLE Object. ... Rather than saving a Bitmap file, ... StudentSign field is being populated with students' signatures (captured ...
    (microsoft.public.access.reports)
  • Re: VB3 is making my head spin!
    ... >machine running at full colour depth will save it as a 24 bit bmp file). ... >It is this "what would the depth be of a bitmap that you saved to disk ... >Accelerator code doesn't handle RLE compression (which I think your own ... define a new palette (I did not know that bitmap definer could also ...
    (comp.lang.basic.visual.misc)
  • Re: Help with SendKeys
    ... converting a 24 bit Windows bmp file to a 4 bit Windows bmp file, ... for an output that is a standard Windows 16 colour bmp file, ... understand yourself and doing it without using any Windows API ... your bitmap code. ...
    (comp.lang.basic.visual.misc)
  • Saving BMP file renders Black Image
    ... I am trying to save a bmp file from a pictureholder. ... // contains a BITMAPINFOHEADER structure and an array of RGBQUAD ... // If the bitmap is not compressed, ...
    (microsoft.public.vc.mfc)