Delphi视觉组件-是否要远离TFrame基础? [英] Delphi visual component - moving away from TFrame base?

查看:61
本文介绍了Delphi视觉组件-是否要远离TFrame基础?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个视觉组件,它是从TFrame构建的(但随后已注册到调色板等);

I have a visual component that I built from a TFrame (but then registered to the palette, etc); it works great and I loved being able to build it VISUALLY using the IDE.

我现在想创建一个由相关组件组成的系列,为此,想要创建此组件的超类,然后从那里继承该组件和其他组件。

I would now like to create a "family" of related components, and to do so, would like to create a superclass of this component, and then inherit this component and others from there.

有很多方法可以做到这一点,但是我发现自己在想:是否有工具可以将* .DFM文件(即Forms或TFrames)转换为原始对象Pascal constructor 代码?考虑从何处开始,从视觉形式或TFrame开始,然后在某个时候脱离该继承,然后替换构造函数,而从本质上说,这是从DFM文件流式传输的替代方法。

There are a lot of ways to do this, I'm sure, but I'm finding myself wondering: Is there a tool that will convert *.DFM files (i.e. Forms or TFrames) to raw Object Pascal constructor code? Thinking of where it w/b nice to begin w/a visual form or TFrame, but then break from that inheritance at some point, and replace the constructor w/what is essentially a replacement for streaming from the DFM file.

一如既往,所有的想法/投入都很感激。

As always, all thoughts / input appreciated.

推荐答案

GExperts组件编码,生成所选组件的代码。
属性,例如您必须亲自签名的图像。

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

这篇关于Delphi视觉组件-是否要远离TFrame基础?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆