How do I hide a non-visual component on a form at design-time?

妖精的绣舞 提交于 2020-01-24 02:12:28

问题


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?


回答1:


This option is included inside of the Gexperts menu and is called Hide/Show Non-Visual.




回答2:


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




回答3:


It is not built into Delphi but it is provided by GExperts. It only works for TCustomForm based designers. It will not work for TDataModule or other types of designers.




回答4:


I'm not aware of any feature like this in any version of Delphi. However, GExperts has such a feature.



来源:https://stackoverflow.com/questions/5922227/how-do-i-hide-a-non-visual-component-on-a-form-at-design-time

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!