Ask Your Question
2

What is the process for including an icon resource with a numerical name into a TImageCollection?

asked 2021-10-14 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-08-19 07:00:00 +0000

lakamha gravatar image

To include an icon resource with a numerical name into a TImageCollection, follow these steps:

  1. Create a new TImageCollection by selecting "File" > "New" > "Other" > "Image Collection" from the main menu.
  2. Click on the "Items" property of the TImageCollection to open the Image Collection Editor.
  3. Click on the "Add" button to add a new item to the collection.
  4. In the "Image Properties" section of the editor, set the "Name" property to the numerical name of the icon resource.
  5. Set the "Kind" property to "Bitmap" or "Icon", depending on the type of the resource.
  6. In the "Source" section of the editor, click on the "..." button to select the resource file that contains the icon.
  7. In the file selection dialog, navigate to the resource file (e.g. a .res file) and select it.
  8. In the "Resource" field of the editor, enter the numerical ID of the icon resource.
  9. Click on the "OK" button to close the editor and save the changes to the image collection.

The icon with the numerical name should now be included in the image collection and available for use in your application.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-10-14 11:00:00 +0000

Seen: 11 times

Last updated: Aug 19 '22