ComboBoxEx - Icons have a black background

Just starting out? Need help? Post your questions and find answers here.
crackhead
User
User
Posts: 12
Joined: Tue Apr 06, 2010 9:26 pm

ComboBoxEx - Icons have a black background

Post by crackhead »

Hi,
I create the imagelist like this:

Code: Select all

images = ImageList_Create_(16, 16, #ILC_COLOR16, 0, 0)
SendMessage_(ComboBox, #CBEM_SETIMAGELIST, 0, images)
The icons I display are those of some executables like PureBasic.exe or EXPLORER.exe
and somehow the pixels which should be transparent are black

As I used this with a ListView Control it was working...
Thanks
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: ComboBoxEx - Icons have a black background

Post by srod »

You don't need to create your own imagelist with the new combobox gadget - just use the imageID parameter when using AddGadgetItem() etc.

As for your problem, try : #ILC_COLOR32|#ILC_MASK
I may look like a mule, but I'm not a complete ass.
crackhead
User
User
Posts: 12
Joined: Tue Apr 06, 2010 9:26 pm

Re: ComboBoxEx - Icons have a black background

Post by crackhead »

You don't need to create your own imagelist with the new combobox gadget
but only the newest beta supports ComboBoxEx, not?
As for your problem, try : #ILC_COLOR32|#ILC_MASK
hehe, thanks, it's working

may I ask a second short question?
I didn't want to open a new thread, also I couldn't find a solution:

what if I needed a dll which should export a function with a reserved name like OpenWindow?
Thank you
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: ComboBoxEx - Icons have a black background

Post by srod »

I think that's a no go.

Export it as something else and then, for example, import it with an alias. If PB does not allow an alias of 'OpenWindow' then use a macro to 'redefine' OpenWindow to your alias etc.

Course this is only for PB clients.
I may look like a mule, but I'm not a complete ass.
Post Reply