Board index » delphi » Do you know a combobox able to display images?

Do you know a combobox able to display images?


2003-12-25 09:44:35 AM
delphi164
Hi all,
I would like to know about any combobox component able to display
images from a tImageList.
I have been trying Delphi 7 tComboBoxEx, but it is incredibly buggy.
I have also tryied some components from a delphi components site, but
they are too old and do not work properly in D7.
Any help will be appreciated.
Best regards
Manuel Sebares
 
 

Re:Do you know a combobox able to display images?

Hi Manuel,
Take a normal Combobox, set it is style to csOwnerdrawFixed and supply the
OnDrawItem Event.
In OnDrawItem, use the Imagelist's Draw method to display the image and add
some text, if you want.
Merry Christmas,
Achim
Manuel Sebares writes:
Quote
Hi all,

I would like to know about any combobox component able to display
images from a tImageList.

I have been trying Delphi 7 tComboBoxEx, but it is incredibly buggy.

I have also tryied some components from a delphi components site, but
they are too old and do not work properly in D7.

Any help will be appreciated.

Best regards

Manuel Sebares