在 Delphi 中绘制 DataModule

发布于 2024-07-25 20:55:29 字数 161 浏览 9 评论 0原文

我想知道能够拥有自定义背景或能够以某种方式在数据模块画布上绘制以便可以用箭头和其他东西很好地表示所有数据集的关系会有多困难。 早在 Delphi 7 左右,我似乎记得某种已经消失的数据模块设计器(无论如何我总是觉得它很烦人)。

有谁知道这是否可以通过某种 IDE 插件或其他东西实现?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

绳情 2024-08-01 20:55:29

TDataModule 是 TComponent 的直接后代,因此,它没有提供 Canvas 或任何此类绘画。 照原样,无法在其上绘画或绘画。

可以想象,您可以创建一个具有 TCanvas 的后代,但您必须真正侵入 IDE 才能在设计时绘制它。 然而,这是一个有趣的想法。

数据模块设计器上曾经有一个“图表”选项卡。 它确实能够放置注释、文本框和数据关系。 我猜它并没有被很好地理解或使用,并且该功能被删除了。 (在我加入 CodeGear 之前...)

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.

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.

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...)

夜唯美灬不弃 2024-08-01 20:55:29

或者,您可以将数据模块更改为表单。 在开发过程中使其可见,以便进行测试、文档记录和调试; 并将其隐藏以进行生产。 在表单上,​​您可以放置​​ visio 查看器组件和一些数据网格,通过选项卡架访问,以便快速浏览数据。

Or, you may change the datamodule to a form. Leave it visible during development, for testing, documentation and debugging; and turn it it invisible for production. On the form you may put a visio viewer component and some datagrids, accessed thru a tab rack, for quick browsing of the data.

隱形的亼 2024-08-01 20:55:29

我相信有某种方法可以将组件组织在可见的组中
屏幕可能会很好...我有一个报告 DM,其中包含大量数据集,
数据集提供者和 Rave DataSources(大约 40 个组件)...
如果我可以创建一些组来区分哪些组用于
什么报告。

但这是在 DM 设计师本身,而不是在单独的绘图空间上......

I believe that some way to organize the components in visible groups on
screen could be nice... I have a report DM which have tons of datasets,
dataset providers and Rave DataSources (circa 40 components)....
If I could create some groups to differentiate which is used in
what report.

But this in DM designer itself, not on a separate drawing space...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文