anchor.diff:    AllowNear: TApp3States;
     OpenMode, NonTextMode: TAppOpenMode;
     CurGroups: TATGroups;
  -  Params: TAppVariantArray;
     //tick: QWord;
     //msg: string;
   begin
  
positive.code:       PntLocal:= Ed.ScreenToClient(PntScreen);
        if PtInRect(Ed.ClientRect, PntLocal) then
        begin
          SetLength(Params, 2);
          Params[0]:= AppVariant(PntLocal.X);
          Params[1]:= AppVariant(PntLocal.Y);
          DoPyEvent(Ed, cEventOnMouseStop, Params);
          Break;
        end;
      end;
  
negative.code:     //py event
      if bEnableEventPre then
      begin
        if DoPyEvent(CurrentEditor, cEventOnOpenBefore, [AppVariant(AFileName)]).Val = evrFalse then exit;
      end;
  
      bDetectedPics:= bAllowPics and IsFilenameListedInExtensionList(AFileName, UiOps.PictureTypes);
  