JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Creating Image Lists

In the ImageLists example on the CD-ROM, I've added an ImageList component to store images in. When you click the image list's Images property in the Properties window, a collection editor opens as you see in Figure 10.8, and you can add new images to the image list (all of which should be the same size) by clicking the Add button (which lets you browse for new images) or remove them by clicking the Remove button.

Click To expand
Figure 10.8: Adding images to an image list component.

You can set the size of the images in the image list (the default is 16×16 pixels, the size of a small icon) with its ImageSize property in the properties window. Of course, you also can add images to image lists in code; see the topic "Adding Images to Image Lists in Code" later in this chapter.

Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor