// The action to simulate it
procedure TForm1.ShapeLeft1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
C : TComponent;
begin
C := TShape(Sender).GetParentComponent;
{ In case you move the shape out of the panel
or discard its OnDblClick tomorrow ... or next year ...}
if (C is TPanel) and Assigned(TPanel(C).OnDblClick) then
TPanel(C).OnDblClick(nil); {Just call it!}
end;