在Delphi中绘制一个DataModule [英] Drawing on a DataModule in Delphi

查看:192
本文介绍了在Delphi中绘制一个DataModule的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道拥有自定义背景或以某种方式在datamodule画布上绘制以使所有数据集之间的关系都能用箭头和东西很好地表示是多么困难。回到Delphi 7左右,我似乎还记得某种消失的数据模块设计器(无论如何我总是觉得很烦)。

I wonder how difficult it would be to be able to have a custom background or be able to draw on the datamodule canvas somehow so that the relationships of all the datasets can be nicely represented with arrows and stuff. Way back in Delphi 7 or so I seem to remember some sort of datamodule designer which has disappeared (I always found it annoying anyway).

有人知道这是否可行吗?

Does anyone know if this is possible through some sort of IDE plugin or something?

推荐答案

TDataModule是TComponent的直接后代,因此,它不会内含画布或任何此类绘画。

TDataModule is a direct descendant of TComponent, and as such, it doens't have a Canvas or any such painting provisioned in it. As is, there is no way to draw or paint on it.

可以想象,您可以创建一个具有TCanvas的后代,但是您必须真正入侵IDE,以便在设计时使用它。但是,这是一个有趣的想法。

It is conceivable that you could create a descendent that has a TCanvas, but you'd have to really hack into the IDE to get it to be drawn on at design-time. It is an interesting idea, however.

过去在Datamodules的设计器中有一个 Diagram选项卡。它确实具有注释,带有文本的框以及数据关系的功能。我猜它不是很了解或使用,并且该功能已被删除。 (在我进入CodeGear之前...)

There used to be a "Diagram" tab on the designer for Datamodules. It did have the ability to put notes, boxes with text, and data relations. It was not very understood or used, and the feature was dropped, I guess. (Before my time at CodeGear...)

这篇关于在Delphi中绘制一个DataModule的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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