Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1749
  • Last Modified:

Image ListBox

Hello. I am developing an application using Delphi 7 personal.

I need to add images to my listbox. They can either be an external image or an TImageList, or an external image, but I need to be able to control which image goes into what position of the list box.

Any one know how to do this?
0
HaloShg
Asked:
HaloShg
1 Solution
 
developmentguruCommented:
Will your images be the same size (or at least the same height)?  This will make a difference in how you do it.  If the items will all be the same height then you can just do an Owner Draw list box.  Here is a good article that you can adapt to what you want to do.

http://delphi.about.com/od/vclusing/a/drawincombobox.htm
0
 
HaloShgAuthor Commented:
Thank you. It works now :)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now