问题
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