Component editors
Component editors
control the behavior of a component when double-clicked or right-clicked in the form designer. Classes that define a component editor must descend from TComponentEditor
or one of its descendent classes. The class should be registered in the Register
procedure using the function RegisterComponentEditor
. Most of the methods of TComponentEditor
are inherited from it's ancestor TBaseComponentEditor
, and, if you are going to write a component editor, you need to be aware of this class and its methods. Declaration of TBaseComponentEditor
is as follows:
TBaseComponentEditor = class protected public constructor Create(AComponent: TComponent; ADesigner: TComponentEditorDesigner); Virtual; procedure Edit; Virtual; Abstract; procedure ExecuteVerb(Index: Integer); Virtual; Abstract; function GetVerb(Index: Integer): String; Virtual; Abstract; function GetVerbCount: Integer; Virtual; Abstract; procedure PrepareItem...