delphi non visual component image

前端 未结 2 1685
生来不讨喜
生来不讨喜 2020-12-06 01:56

I am building a delphi non-visual component. How do I set the image I want it to have in the IDE?

2条回答
  •  孤城傲影
    2020-12-06 02:43

    You just need to make icon for this component that will also be shown in component palette, same way you are doing this for visual components. In short words, make MyComponent.dcr file for component MyComponent.pas and add this file to package with this component. You can use Delphi Image Editor to make dcr.

提交回复
热议问题