Show: Delphi C++
Display Preferences

Resources and Images

From RAD Studio
Jump to: navigation, search

Go Up to Project Menu

Project > Resources and Images

Allows you to add Windows resources such as fonts, cursors, bitmaps, and other graphics to a project. You can assign resource identifiers and resource types to each item in this dialog. Resource files include files with the following file extensions: .bmp, .cur, .fnt, .fon, .gif, .ico, .jfif, .jpe, .jpeg, .jpg, .png, .ttf.

When the main project is compiled, a resource script file (.rc) that contains a list of all the added resources is created and then compiled to a resource object file.

In Delphi, the two generated files are:

  • <projectname>Resource.rc
  • <projectname>.dres

In C++, the generated files are:

  • <projectname>_resource.rc, which is then compiled to:
  • \Debug\<projectname>.res


Resource files group box

Item Description

File name

Lists the file names of resources already added to the project.

Type

Displays the type for each resource. The data types include Bitmap and RCData.

Identifier

Displays the identifier for each resource file. When you add resources on this dialog box, a default Identifier name is assigned. You can assign a different Identifier for a resource by using the Resource Identifier text entry field.


Add and Remove buttons

Item Description

Add

Click the Add button to display the standard Open file dialog box. Navigate to a resource file that you want to add to your project, select the file, and click Open.

Remove

Deletes the selected resource file from your project.


Properties group box

Item Description

Resource Identifier

Displays the Identifier associated with the selected File name. To assign a different Identifier, replace the displayed name with the Identifier of your choice.

Resource Type

Displays the Resource Type (such as RCData or Bitmap) for the selected File name. You can select a different resource type from the drop-down list.


See Also

Personal tools
RAD Studio 10.2 Tokyo
In other languages
Previous Versions
Assistance