开发者

How to write a custom Button component?

开发者 https://www.devze.com 2023-01-08 12:53 出处:网络
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 rece

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

精彩评论

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

关注公众号