Delphi visual component - moving away from TFrame base? [closed]

偶尔善良 提交于 2019-12-06 00:04:20

GExperts "Component To Code", generate the code for selected components. Property like images you have to sign by yourself.

A little curious why you'd want to do this at first glance... You can inherit from forms/frames in the IDE.

Depends on your version of Delphi, in Delphi 2009, File->New and then select Inheritable Items and pick the Form/Frame of yours that you want to inherit from. In previous versions, you'd pick File-New and there would be a tab for the project's name and a list of all the projects forms to select from.

It's quite handy! You end up with different flavors of Forms/Frames and just about everything you create afterwards is a descendant of one of them.

I second the GExperts comment by Cesar, and would add that images can be included (and names) in Resource files and then INCed into the PAS file.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!