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

前端 未结 4 1417
南方客
南方客 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条回答
  •  猫巷女王i
    2020-12-24 03:22

    I have used and had great success with:

    • Colin Wilson's XN Resource Editor
    • Anders Melander's Resource Editor

    Update

    I just tried the following, in XE, and was successful.

    • I created a new component, TNewAnimate, in NewAnimates.pas.
    • I added TNewAnimate.pas to dclusr.dpk.
    • I added a bitmap (called TMRUComboBox.bmp, I just had that around anyway) using the Project → Resources and Images... dialog to the .dpk and gave it the name TNEWANIMATE.
    • I re-installed dclusr.dpk.

    The source file for dclusr.pdk got a new entry {$R *.dres} (note the extension). I could see the TNewAnimate in the Samples palette with the glyph in TMRUComboBox.bmp.

    I located dclusr.dres in the same directory as dclusr.dpk (which is normally under C:\Program Files, but not in my setup). I tried to open it with XN Resource Editor, but that refused to open it with a cryptic error message. It is not a normal .res file, it seems.

    enter image description here

提交回复
热议问题