Adding Images to an Application

From RAD Studio
Jump to: navigation, search

Go Up to Adding Graphical Objects to a String List

An image control is a nonvisual control that contains a graphical image, such as a bitmap. You use image controls to display graphical images on a form. You can also use them to hold hidden images that you use in your application. For example,

To store bitmaps for owner-drawn controls in hidden image controls:

  1. Add image controls to the main form.
  2. Set their Name properties.
  3. Set the Visible property for each image control to False.
  4. Set the Picture property of each image to the desired bitmap using the Picture editor from the Object Inspector.

The image controls are invisible when you run the application. The image is stored with the form so it does not have to be loaded from a file at run-time.

See Also