Best way to make a component icon in Delphi XE using only the built in tools

前端 未结 4 1418
南方客
南方客 2020-12-24 03:01

In Delphi 7, an image editor program is included, which can read and write .dcr files, which are merely binary resource files (.res files) with a

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-24 03:15

    I have investigated the previous responses using Delphi XE5 upd2. Not much success. So I tried to build a new solution and found one derived from previous answers.

    In short: 1. Create your bitmap using Windows Paint program. 2. Create a resource script file with the bitmap. 3. Compile the script with BRCC32 to produce the dcr file 4. Include the dcr file into the package source 5. Recompile/Install the package

    To automate this, it is enough to add the BRCC32 command line into the package project "pre-build events". This way, you dcr file will be recreated before each build.

    For a detailed description, see my blog at http://francois-piette.blogspot.be/2014/02/howto-create-dcr-file-for-your-delphi.html

提交回复
热议问题