How to change the default name of new components

穿精又带淫゛_ 提交于 2021-01-28 11:32:08

问题


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.

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.

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?

Just if it is important: I'm using Delphi 10.2.


回答1:


In GExperts it's called "Rename Components": http://www.gexperts.org/tour/index.html?renamecomponents.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

There is the same functionality in CnPack in "Prefix-master"

I can be wrong a little, because I prefer CnPack, but they are similar enough, I think.



来源:https://stackoverflow.com/questions/62935478/how-to-change-the-default-name-of-new-components

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