RAD Studio
ContentsIndex
PreviousUpNext
Adding Graphical Objects to a String List

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.

TStringList 

TImage

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!