OTA - Component Images

In the IDE run Tools > Image Editor to run the supplied resource editor or your favorate resource editor.

Component Image

Image Editor

  In the Image Editor create a new Component Resource File. If using your favorate resource editor create a new *.res file and at the end of editing it change the extension to *.dcr.

  Now create a new 24 x 24 pixel bitmap resource. Name the new resource the same name as the Component, by convention the resource name should be in capital letters.

Image Example

Image Package

 Now save the file with the same name as the unit in the package that contains the Register function and place it in the same location as the unit. Now when the unit is added to the package the *.dcr file will be automaticlly added along with it.

Installed Component

Installed custom component with custom image.

 

Back to OpenTools API page.

 


mustangpeak.net

  Last Modified on: