32bits bitmap

This forum is meant for questions and discussions about the X# language and tools
Post Reply
User avatar
baramuse
Posts: 88
Joined: Tue Nov 29, 2022 8:31 am
Location: France

32bits bitmap

Post by baramuse »

Hi all,

in an effort to refresh our UI, I read in the SEUIXP documentation :
SEUIXP Classes and the Ribbon Manager supports 32 Bit Bitmaps with alpha channel.
All Windows versions older than 'Windows XP' do not support Bitmaps with alpha channel.
All version since 'Windows XP' can display 32 Bit bitmaps with alpha channel. If you want optimal looking toolbars for all os versions
and all color modes of graphic cards, you can use separate bitmaps for 4, 8, 24 and 32 Bit modes.
So we thought we could then provide our menus with 32bits BMP with alpha-channel, but I can't seem to be able to load a 32bits bitmap:

Code: Select all

CLASS Ribbon32 INHERIT Bitmap

    CONSTRUCTOR()
        VAR RES := ResourceID{"Ribbon32", _GetInst(), LR_LOADFROMFILE}
        SUPER( RES )
        RETURN SELF

END CLASS
I tried a few different kLoadOptions without success. It does not complain but does not load either.
If the bmp is a 24bits one, no problem at all.

Is it possible to load 32bits bitmaps from resource ?
If not, then how can SEUIXP handle 32bits bitmaps ?

Regards.
User avatar
baramuse
Posts: 88
Joined: Tue Nov 29, 2022 8:31 am
Location: France

Re: 32bits bitmap

Post by baramuse »

I'm answering myself: it came from the actual bitmap.
I've read on windows forums that 32bit bitmap was not part of the original specs, so the support can be tricky.
Exported files with paint.net would not load, I tried a (forum recommended) older software called "PixelFormer", re-exported the .bmp and it loaded.

problem solved !
Post Reply