Can I add a second component editor to a component in Firemonkey?

  

Delphi IDE has a component editor for TLang component (Language Designer)
I wrote a custom component editor to TLang, to help with localization tasks.
I registered it in a design time package.

RegisterComponentEditor(TLang, TMyLangComponentEditor);

This works. Now when I dbl-click the component, I get my flashy component editor. But it hides the original TLang editor.
How can I have access to both editors in the right-click menu ?

ex: In my component editor I have:

function TMyLangComponentEditor.GetVerb(Index: Integer): string;
begin
case Index of
0: Result := ‘&Show IDE Lang Designer’;
1: Result := ‘&Show My Lang Editor’;
else
raise ENotImplemented.Create(‘verb not supported’);
end;
end;

procedure TMyLangComponentEditor.ExecuteVerb(Index: Integer);
begin
case Index of
0: ; // <— what goes here to open the IDE Language designer ?
1: ShowMyLangForm;
else
raise ENotImplemented.Create(‘verb not supported.’);
end;
end;

I’m afraid that, by registering a new component editor, the old one got lost…

Comments are closed.