问题描述
当您将组件添加到表单时,Delphi会设置组件的名称.第一个TButton将被命名为"Button1".第二个"Button2"等等.
Delphi sets the name of components when you add them to a form. The first TButton will be named "Button1" the second "Button2" and so on.
前一段时间,我偶然发现您可以更改此前缀".与TButton呆在一起,我将其更改为"btn",因此TButton将被命名为"btn1","btn2"等等.
A while ago I discovered by accident that you can change this "prefix". Staying with TButton I changed it to "btn" so TButtons will be named "btn1", "btn2" and so on.
现在,我想更改一些组件前缀,但不幸的是,我忘记了如何执行此操作.它可能是GExperts的某些功能.有人来营救吗?
Now I want to change some more component prefixes but unfortunately I forgot how to do this. It could be some functionality of GExperts. Anybody to the rescue?
重要的是:我正在使用Delphi 10.2.
Just if it is important: I'm using Delphi 10.2.
推荐答案
在GExperts中称为重命名组件": http://www.gexperts.org/tour/index.html?renamecomponents.html
In GExperts it's called "Rename Components":http://www.gexperts.org/tour/index.html?renamecomponents.html
要到达那里,您必须打开"GExperts配置"然后点击配置"重命名组件"右侧的按钮: http://www.gexperts.org/tour/index.html?gexperts_configuration.html
To get there you have to open "GExperts Configurations" and click on "Configure" button at the right side of "Rename Components":http://www.gexperts.org/tour/index.html?gexperts_configuration.html
"Prenx-master"中的CnPack具有相同的功能
There is the same functionality in CnPack in "Prefix-master"
我可能会错一点,因为我更喜欢CnPack,但是我认为它们足够相似.
I can be wrong a little, because I prefer CnPack, but they are similar enough, I think.
这篇关于如何更改新组件的默认名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!