如何更改新组件的默认名称

How to change the default name of new components

Delphi 设置将组件添加到表单时的名称。第一个 TButton 将被命名为“Button1”,第二个将被命名为“Button2”,依此类推。

前段时间无意中发现这个“前缀”是可以改的。继续使用 TButton,我将其更改为“btn”,因此 TButton 将被命名为“btn1”、“btn2”等等。

现在我想更改更多的组件前缀,但不幸的是我忘记了如何操作。它可能是 GExperts 的一些功能。有人来救援吗?

如果它很重要:我正在使用 Delphi 10.2.

在 GExperts 中称为“重命名组件”: http://www.gexperts.org/tour/index.html?renamecomponents.html

要到达那里,您必须打开“GExperts Configurations”并单击“Rename Components”右侧的“Configure”按钮: http://www.gexperts.org/tour/index.html?gexperts_configuration.html

CnPack在“Prefix-master”中有相同的功能

我可能有点错,因为我更喜欢CnPack,但我认为它们足够相似。