如何在Delphi中最好地创建HMI显示面板(用户定制界面)
我需要改进应用程序中的屏幕,该屏幕呈现嵌入的 HMI(人机界面)显示我们的德尔福代码。此屏幕使我们的客户能够执行一系列操作(运行测试、产品报告等)以及公开和查看关键命名数据值。这种定制是必需的,因为我们的应用程序控制的机器可能由一系列技能水平操作,从简单的操作员(可能不会说英语并且控制能力必须非常有限)到希望“看到一切”并拥有最大控制权的高级用户。
几年前,我创建了一个基于嵌入式 HTML 查看器(当时的 Turbopower)和 TPageProducer 的解决方案,以动态调整 HTML 模板(用户可以自定义),并显示一组简单的控件和数据表。这工作正常,但编辑速度很慢(您必须调整模板并查看效果),我确信现在有更好的方法。
我需要的是类似于可以在运行时自定义的 Delphi 表单。我需要:按钮、标签和编辑。可编辑的形状和箭头是理想的,就像可以在其上放置控件和文本的固定图像一样。布局应该是可保存的(如 DFM 文件),文本标签应有两种类型 - 固定文本和更新以在更新通知上显示键值的文本标签(如 DB 控件)。最终布局应缩放其比例以适应可调整大小的布局。
这个问题是关于这项工作的最佳工具,我并没有完全冷漠,我已经尝试过 Greatis Form Designer 并获得了一个可行的解决方案,但在我提交之前,我会欣赏有关报告工具(带有内置报告编辑器)是否可能/可用/更好的评论,因为打印转储功能也将有用的。 (快速报告?快速报告等?)。但请注意,这主要是显示要求。更新的嵌入式 HTML 解决方案的评论也将受到欢迎,就像任何确保布局格式最大限度地适应未来的事情一样。
任何解决方案都应该可以在 Dephi 7 中使用(目前!),并且不需要是 unicode,只要有一个针对较新的 Delphi 的迁移路径即可。
任何其他评论或意见将非常受欢迎。谢谢。
I need to improve a screen in our Application that presents an HMI (Human Machine Interface) display embedded in our Delphi code. This screen provides our customer with the ability to perform a range of actions (run test, product report etc) and to expose and view key named data values. This customisation is required because our Application controls machinery that might be operated by a range of skill levels from simple operator (may not speak English and must have very limited control) through to a power user who wishes to 'see everything' and have max control.
Some years back I created a solution based on an embedded HTML viewer (Turbopower's as it was then) and TPageProducer to dynamically tweak an HTML template (that the user could customise) and which would display a simple set of controls and data tables. This works fine but is slow to edit (you have to tweak the template and look-see the effect) and I'm sure there are better ways now.
What I need is similiar to a Delphi form that can be customised at runtime. I need: buttons, labels and edits. Editable shapes and arrows are desireable as are fixed images over which controls and text can be laid. The layout should be saveable (like a DFM file) and text labels should be of two types - fixed text and those which update to display key values on an update notification (like a DB control would). The final layout should zoom its scale to fit a resizable layout.
This question is about the best tool for the job and I'm not coming into this totally cold, I've experimented with Greatis Form Designer and obtained a working solution but before I commit, I would apprecaite comments about whether a report tool (with built-in report editor) would be possible / useable / better since a print dump feature would also be useful. (Fast Reports? Quick Report etc?). Note though that this is a display requirement primarily. Comments re newer embedded HTML solutions would also be welcome as would anything to ensure max future-proofing of the layout format.
Any solution should be useable in Dephi 7 (for now!) and does not need to be unicode as long as there is a migration path to this for newer Delphi's.
Any other comments or observations would be very welcome. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您首先查看过免费的 JVCL 内容吗?有一个 JvInspector(RTTI 组件属性检查器,就像 Delphi 属性检查器)和一个表单设计器,等等。您可以基于这些推出自己的解决方案,甚至使用 JvInterpreter 来实现某些脚本编写功能。
其次,如果您可以支持设计器中拥有的任何控件,并且需要一些特定于 HMI 的东西,请查看 IOCOMP: http://www.iocomp.com/
Have you looked first at the free JVCL stuff? There's a JvInspector (RTTI component property inspector, just like Delphi property inspector), and a form designer, and so on. You could roll your own solution based on these, and even use JvInterpreter for some scripting capability.
Secondly, if you can support ANY control that you have, in your designer, and you need some HMI specific stuff, check out IOCOMP: http://www.iocomp.com/
TMS Scripter Studio Pro 提供了一个类似 Delphi 的 IDE 和带有脚本的表单设计器,但它可能超出了你的要求。
TMS Scripter Studio Pro provides a Delphi-like IDE and form designer with scripting, but it maybe overkill for your requirements.