I guess that your Editor was inherited from TComponentEditor ? if So , you need to call the default Edit function in order to generates OnClick event of your component inside your editor ExecuteVerb function . Note : the Edit function is empty in the TComponentEditor class .. So you need to use the IDefaultEditor interface to call the Edit function :
First Method :
procedure TYourEditor.ExecuteVerb(Index: Integer);
var
DefEditor: IDefaultEditor;
begin
DefEditor := TDefaultEditor.Create(Component, Designer);
DefEditor.Edit;
case Index of
0:
// DoSomething !!
// ...
// ...
end;
//...
end;
Second Method :
You have another way : You can inherite your Editor from TDefaultEditor class (and not from TComponentEditor) :
TYourEditor = class(TDefaultEditor)
.....
procedure TYourEditor.ExecuteVerb(Index: Integer);
begin
inherited;
end;
But if you use the second method , you will lose your capability (Only when double click, other context menu will apear normaly ). i would prefer using the first method .