1. SetMenuItemBitmaps (Menu icons)

------=_NextPart_000_001F_01BE7F5E.B9C680C0
        charset="iso-8859-1"

Hi,

When I try to add a menu-icon to the left of a menuitem (just like in e.g.
MS Word) it seems that the color white is supposed to be the transparent
color. However in the bitmap for my 'new-document' menuitem I want it to be
white and not transparent. Does anybody know how I can get the color white
in menuitem-bitmaps?

The source attached is supposed to show the same picture next to the
'New'-menuitem as the picture next to the 'New'-menuitem in MS Word. However
the white part of the MS-bitmap is showed transparent.


Sincerely,

Martin Schut






------=_NextPart_000_001F_01BE7F5E.B9C680C0
        name="menuicon.exw"
Content-Transfer-Encoding: quoted-printable

new topic     » topic index » view message » categorize

2. Re: SetMenuItemBitmaps (Menu icons)

Welkom Martin,

In the documentation for createDIB I read that the code is broken
and needs to be fixed, or similar words. Is that right, David?

> Hi,
> =A0
> When I try to add a menu-icon to the left of a menuitem (just like in=
 e.g.
> MS Word) it seems that the color white is supposed to be the transpar=
ent
> color. However in the bitmap for my 'new-document' menuitem I want it=
 to be
> white and not transparent. Does anybody know how I can get the color =
white
> in menuitem-bitmaps?
> =A0
> The source attached is supposed to show the same picture next to the
> 'New'-menuitem as the picture next to the 'New'-menuitem in MS Word. =
However
> the white part of the MS-bitmap is showed transparent.
> =A0
> =A0
> Sincerely,
> =A0
> Martin Schut
> =A0
> =A0
> =A0
> =A0
> =A0
>



 | Gratis e-mail en meer: http://www.dolfijn.nl/
 | Een product van Ilse: http://www.ilse.nl/

new topic     » goto parent     » topic index » view message » categorize

3. Re: SetMenuItemBitmaps (Menu icons)

Indeed the createDIB is broken and I fixed the most obvious error (4
bit-compression, see my previous post on 2 April). However it still doesn't
work when I load the the bitmap with loadBitmapFromFile, which doesn't use
the createDIB-function at all.

> Welkom Martin,
>
> In the documentation for createDIB I read that the code is broken
> and needs to be fixed, or similar words. Is that right, David?
>
>> Hi,
>>
>> When I try to add a menu-icon to the left of a menuitem (just like in
e.g.
>> MS Word) it seems that the color white is supposed to be the transparent
>> color. However in the bitmap for my 'new-document' menuitem I want it to
be
>> white and not transparent. Does anybody know how I can get the color
white
>> in menuitem-bitmaps?
>>
>> The source attached is supposed to show the same picture next to the
>> 'New'-menuitem as the picture next to the 'New'-menuitem in MS Word.
However
>> the white part of the MS-bitmap is showed transparent.
>>
>>
>> Sincerely,
>>
>> Martin Schut

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu