开发者

How to write a custom Button component?

I have been making components for Delphi for a couple months now. Currently I am extending the TButton to create another form that 开发者_如何学编程has 20 or so components on it. I have done this recently and just created everything dynamically in click event. Is there a way to create to form and have it compiled into the component so I can use the IDE to design the form?

Thank you


Yes. Simply add your TForm unit to your button's Package, and then you can design it like any other project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜