Programming Delphi How to Add Images to an Application in Delphi or C++Builder
Notice: Undefined variable: relatedArticlesCount in /home/wwwroot/codeback.net/plugins/content/tags.php on line 149

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'll use in your application. For example, you can store bitmaps for owner-draw controls in hidden image controls, like this:

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. If you has set the picture property, then the image will be showed.

Note: In the lower version of Delphi and C++Builder, the types of the images only support .bmp, .jpg, .jpeg, .ico, .emf and .wmf.


Add comment


Security code
Refresh

Programming - Delphi