Veit Zimmermann
Veit Zimmermann

Reputation: 193

How to change the default name of new components

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.

Upvotes: 2

Views: 454

Answers (1)

mrNone
mrNone

Reputation: 397

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.

Upvotes: 4

Related Questions