API:DesignEditors.TComponentEditor

From RAD Studio API Documentation
Jump to: navigation, search

DesignIntf.TBaseComponentEditorSystem.TInterfacedObjectSystem.TObjectTComponentEditor

Delphi

TComponentEditor = class(TBaseComponentEditor, IComponentEditor)

C++

class PASCALIMPLEMENTATION TComponentEditor : public Designintf::TBaseComponentEditor

Properties

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

Description

TBaseComponentEditor is the base class for all component editors.

DesignEditors.TComponentEditor inherits from DesignIntf.TBaseComponentEditor. All content below this line refers to DesignIntf.TBaseComponentEditor.

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