DesignIntf.TBaseComponentEditor

From RAD Studio API Documentation
Jump to: navigation, search

System.TInterfacedObjectSystem.TObjectTBaseComponentEditor

Delphi

TBaseComponentEditor = class(TInterfacedObject)

C++

class PASCALIMPLEMENTATION TBaseComponentEditor : public System::TInterfacedObject

Properties

Type Visibility Source Unit Parent
class public
DesignIntf.pas
DesignIntf.hpp
DesignIntf DesignIntf

Description

TBaseComponentEditor is the base class for all component editors.

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.

See Also