RAD Studio (Common)
ContentsIndex
PreviousUpNext
New Component

ComponentNew VCL Component 

Create the basic unit for a new component.  

You need to choose VCL for C++, VCL for Delphi or VCL for Delphi .NET if you select New VCL Component with no project open.

Item 
Description 
Ancestor type  
Use the drop-down list to select a base class, or enter the name of a base class for your new component. Unless you override them in the component declaration, your new component will inherit all the properties, methods, and events from its ancestor class. After you enter a base class, default entries are written to the Class name and Unit file name. You can accept or edit these entries.  
Class name  
The name of the new class you are creating. In general, classe names are prefaced with a T. For example, the name of your new button component might be TMyButton.  
Palette page  
Use the drop-down list to select a category, or enter the name of the category, in which you want your new component to appear on the Tool Palette.  
Unit file name  
Specifies the name of the unit that will contain the new component. You can include a directory path with the name; otherwise, the unit will be created in the current directory. If the unit directory is not in the Search path, it will be added to the end of the path.  
Search path  
Specifies the path the product uses to search for files.  
OK  
Creates the component but does not install it. To install the component later, choose ComponentInstalled .NET Components.  
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!