GExperts contains an expert for renaming components. This expert has three functions:
-
Provide a prefix for each component class, e.g. btn for
TButton
-
Automatically display a rename dialog when a new component is
added
-
Set additional properties in the same dialog, e.g. Caption or
Text with a configurable default.
Since you probably don't want to add all component classes manually, you should check the option "Auto-add rules for new components". GExperts will then automatically add a rule for component classes that are not yet in the list so all you need to do manually is enter the prefix.
I myself also check the "Show rename dialog for new components" option, which lets GExperts show a rename dialog whenever I add a component to a form. If this option is not checked, you can call the dialog using Shift+F2.
One mostly unknown but very usefull function is to have GExperts ask for additional properties. For example I think it is a rather stupid thing to fill the TEdit's Text property with the component name. You never want that but most likely want to have it set to an empty string. GExpert can do that for you. Just add a rule for the TEdit class (or select the existing one) and click "Other Properties". GExperts will display a dialog where you enter
Text=''
and that's it. If you now add a new TEdit component the Text property will automatically be set to an emtpy string. Another example is the Caption of a TLabel. You don't want it to display the label's name, do you? Instead you will always change it to some real text. In line with the example above you would add
Caption
(without assigning a value) to the "Other Properties" for TLabel. Now the rename dialog will contain an additonal entry field for the Caption.