RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseComponentEditor Class

TBaseComponentEditor is the base class for all component editors.

Pascal
TBaseComponentEditor = class(TInterfacedObject);
C++
class TBaseComponentEditor : public TInterfacedObject;

Use TBaseComponentEditor or one of its descendants as a base class when defining a design-time editor for working with a new component class. All component editors must descend from TBaseComponentEditor and, in addition, they must support the IComponentEditor interface. 

Create a new component editor class for a component class to add verbs to its context menu, change its default double-click behavior, or allow the component to use a new clipboard format.  

TBaseComponentEditor does not implement any support for the IComponentEditor interface. This support must be supplied by descendant classes. For example, TBaseComponentEditor has an immediate descendant, TComponentEditor, which supplies a default implementation of the IComponentEditor interface. Typically, component writers use TComponentEditor or TDefaultEditor as a base class when defining new component editors. However, you can derive a component editor directly from TBaseComponentEditor if you want to provide your own implementation of IComponentEditor.. 

Once the component editor is defined, it can be registered to work with a particular component class. A registered component editor is created for each component of that class when it is selected in the form designer. To create the association between a component editor and a component class, call RegisterComponentEditor

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!