Page 1 of 1
ComboBoxEx - Icons have a black background
Posted: Fri Apr 30, 2010 5:58 pm
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
Re: ComboBoxEx - Icons have a black background
Posted: Fri Apr 30, 2010 6:12 pm
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
Re: ComboBoxEx - Icons have a black background
Posted: Fri Apr 30, 2010 6:27 pm
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
Re: ComboBoxEx - Icons have a black background
Posted: Fri Apr 30, 2010 6:32 pm
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.