Adding an Image Icon to a Component
From Delphi for PHP Documentation Wiki
Summary: Describes how to add an icon to a custom component to represent it in the IDE.
You can add an icon to a custom component to represent it in the IDE when you install the component on the "Tool Palette".
To add an image
- Create an icon image for your component and save it as a bitmap image file with exactly the same name as your component.
Note: The IDE will not associate the bitmap with the component unless the name of the image is the same as the component.
- Create an "icons" subfolder in you project folder under the Delphi for PHP "vcl" folder.
- Copy your bitmap image file to the "icons" subfolder.
- Open the package file for the component in the "Code Editor".
- Modify the path in "setIconPath()" to point to the "icons" subfolder for the project.
Creating Custom Components | Installing Custom Components | Saving Custom Components

