Adding Graphical Objects to a String List
Go Up to Adding Graphics to Controls
Every string list has the ability to hold a list of objects in addition to its list of strings. You can also add graphical objects of varying sizes to a string list.
For example, in a file manager application, you may want to add bitmaps indicating the type of drive along with the letter of the drive. To do that, you need to add the bitmap images to the application, then copy those images into the proper places in the string list as described in the following sections.
Note that you can also organize graphical objects using an image list by creating a TImageList. However, these images must all be the same size. See Adding Images to Menu Items for an example of setting up an image list.