Component Names Property Editor 2.2

       Copyright 1997 Roelof Ensing, all rights reserved.

       By:                                     Roelof Ensing
 email:      [email protected]

 Just a small property editor to edit the names of the components quickly
 with a predefined prefix, suffix and/or name.

 I was getting a little bit sick of constantly having to type in the
 prefixes for a Hungarian notation of the component names, so decided
 to create a small property editor for this.

 History:

 1.0   Initial version, Q&D

 2.0   Changed the editor to use information out of the Registry instead
       out of internal tables. Plus added the update function to allow
       for interactive update of the registry instead of out of the
       PENAMES.REG file.

 2.1     Changed the functionality for suggestions to handle custom
                 components, see PENAMEX.PAS

 2.2   a)      Use the root key from Delphi
                       b)      For speed improvement, load on initialization the prefixlist,
                       the suffixlist and namelist in memory.

       DISCLAIMER

       Users of this software product or component (and it's components) must
       accept this disclaimer of       warranty:

       This software product or component      is supplied as is.      The author
       disclaims all warranties, expressed or implied, including, without
       limitation,     the warranties of merchantability and of fitness for any
       purpose.

       The author assumes no liability for damages, direct or consequential,
       which may result from the use of this software product or component.

       Software may be used, modified and distributed freely if compiled in
       with commercial or private applications (not another VCL).

       The developer retains the copyright to this Software.   You may not
       distribute the source code (PAS) or its compiled unit (DCU) for profit.

       ***********************************************************************
       *                                                                     *
       *  PLEASE LET ME KNOW IF YOU DOWNLOAD THIS EDITOR AND FIND IT USEFULL *
       *  I'M INTERESTED IN TO KNOW HOW MUCH INTEREST THERE IS IN LITTLE     *
       *  GADGETS LIKE THIS.                                                                                                                                                                                           *
       *                                                                     *
       *         PLEASE FORWARD ANY COMMENTS OR SUGGESTIONS TO ROELOF ENSING AT:               *
       *                                                                     *
       *                                                                                       [email protected]                              *
       *                                                                     *
       ***********************************************************************

   FILES

       PENAMES.TXT                     This file
       PENAMES.PAS/DFM/DCU             Property Editor
       PENAMES.INF                             DSP information
       PENAMESX.PAS                    Custom Components Suggestions Handler
       PENAMES2.REG                    Registry Info for Delphi 2.0
       PENAMES3.REG                    Registry Info for Delphi 3.0
       PENAMESR.PAS                    Register function for editor

       INSTALLATION

   The unit itself does not contain a register procedure, to allow for
   the user to control the registration themselves.

   Either add to any other module you use to register the following;

       RegisterPropertyEditor( TypeInfo( TComponentName ),
                                                       TComponent,
                                                       'name',
                                                       TPrefixedNameEditor );

   or register using PENAMERG.PAS

   -PREDEFINED NAMES/PREFIXES/SUFFIXES-

   if you want to use the predefined names and prefixes open the
   Registry Editor (REGEDIT.EXE) and import the PENAMES.REG file.

   USAGE

   In the object inspector press the DLG button wich will now appear
   with any NAME property. This will bring up the window showing the
   current component with the found prefix, suffix and or default name.

       Form Information

       Class

               This field shows the selected class

       Current Name

               The name currently assigned to the component

       Prefix

               The assigned prefix for the class

       Suffix

               The assigned suffix for the class

       Apply (below prefix)

               If checked the prefix will be added to the name

       Seperator (below prefix)

               If checked the prefix will be added with an underscore
               as seperator

       Apply (below suffix)

               If checked the suffix will be added to the name

       Result

               Display the combined resulting name

       Name

               You can either enter an new name (look at the result) or
               select a name from the predefined names in the combobox.

       SUGGEST button

               Suggest will for some components, get the text or caption
               and use that as name. Supported components (incl. inherited)
               TButton,TLabel,TForm,TCheckBox,TRadioButton

       UPDATE-buttons

               1-      Pressing the update button next to the class name will store
                       in the registry the entered Prefix and Suffix.
               2-      The update button next to the entered name will store the name
                       as a predefined name if present.