如何在设计时隐藏表单上的非可视组件?
我正在开发一个旧程序的 GUI(在 Delphi 中)。有些表单很小,并且上面有许多非可视组件(UDP 服务器、UDP 客户端等)。我确信我曾经能够使用热键隐藏/显示表单上的非可视组件,但我不记得它是什么。可能是在某个插件中,自从升级到XE后我就没有添加过。有谁知道这可能在哪里/什么?
I am working on the GUI of an older program (in Delphi). Some of the forms are small and have a number of non-visual components on them (UDP servers, UDP clients etc). I'm sure I used to be able to hide/show the non-visual components on the form with a hot-key, but I can't remember what it was. It may have been in an add-in that I have not added-in since upgrading to XE. Does anyone know where/what this might be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
此选项包含在 Gexperts 菜单内,称为
隐藏/显示非可视化
。This option is included inside of the Gexperts menu and is called
Hide/Show Non-Visual
.一个相当严厉的措施是升级到 Delphi 10 Seattle(或更高版本),因为这是 Embarcadero 添加的新功能之一。 “切换表单/单元”旁边有一个小按钮,称为“显示/隐藏非可视组件” - 快捷键是 CTRL+H
A rather drastic measure would be to upgrade to Delphi 10 Seattle (or later) as this is one of the new features that Embarcadero have added. There is a small button next to "Toggle Form/Unit" called "Show/Hide Non-Visual Components" - the shortcut is CTRL+H
它不是内置于 Delphi 中,而是由 GExperts 提供。
它仅适用于基于
TCustomForm
的设计器。它不适用于TDataModule
或其他类型的设计器。It is not built into Delphi but it is provided by GExperts.
It only works for
TCustomForm
based designers. It will not work forTDataModule
or other types of designers.我不知道任何版本的 Delphi 中都有类似的功能。然而GExperts却有这样的功能。
I'm not aware of any feature like this in any version of Delphi. However, GExperts has such a feature.
正如之前回答的,GExperts和Delphi 10+提供了这样的功能。
我还可以添加 CnPack 和我自己的 小组件。
As answered before, GExperts and Delphi 10+ provides such function.
I can also add CnPack and my own small component.