menuitem bitmap problems
- From: "Bob Richardson" <bobr at whidbey dot com>
- Date: Sat, 25 Nov 2006 12:18:01 -0800
A menu item, named "Language", includes several languages sub-menu items,
each one with a bitmap of a corresponding flag; e.g. Danish has a Danish
flag to the left, using the TBitmap property of the tmenuitem component.
The problem is, some flags don't show up correctly, while slightly more than
half do. For example, the top two strips of the German flag appear
correctly, but the bottom strip is just white - even though the BMP file
shows the correct colors for the 3 strips.
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.
I believe that some processing of the BMP must be taking place. For
example, I know you can provide a large BMP to the Picture Editor and it
will automatically resize the picture so that it will look reasonable (most
of the time) to the left of the caption on the menu item.
Is there someway I can edit the BMP so that the Picture Editor will not edit
my BMP, and screw it up? Is there another solution to this problem?
.
- Follow-Ups:
- Re: menuitem bitmap problems
- From: alanglloyd@xxxxxxx
- Re: menuitem bitmap problems
- Prev by Date: BDS.exe crashes
- Next by Date: Re: menuitem bitmap problems
- Previous by thread: BDS.exe crashes
- Next by thread: Re: menuitem bitmap problems
- Index(es):
Relevant Pages
|