Show: Delphi C++
Display Preferences

DesignEditors.TComponentEditor

From XE2 API Documentation
Jump to: navigation, search

DesignIntf.TBaseComponentEditorSystem.TInterfacedObjectSystem.TObject
TComponentEditor

Delphi

TComponentEditor = class(TBaseComponentEditor, IComponentEditor)

Contents

Properties

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

Description

TComponentEditor provides the default implementation for the IComponentEditor interface.

Use TComponentEditor or one of its descendants as a base class when defining a design-time editor for working with a new component class. Although you can create component editors that descend directly from TBaseComponentEditor, it is convenient to use TComponentEditor, because this class supplies a default implementation of 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.

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. When the component is double-clicked, the Edit method of the component editor is called. When the user right-clicks the component, the GetVerbCount and GetVerb methods of the editor are called to build context menu. To create the association between a component editor and a component class, call RegisterComponentEditor.

See Also

Code Examples

Personal tools
Previous Versions
Translations