anchor.diff:    AAllowLoadHistory, AAllowLexerDetect, AAllowErrorMsgBox: boolean;
     AOpenMode: TAppOpenMode);
   begin
  +  if Assigned(FBin) then
  +    FBin.Hide;
  +  if Assigned(FImageBox) then
  +    FImageBox.Hide;
  +
     if not FileExistsUTF8(AFileName) then exit;
     if (AFileName2<>'') then
       if not FileExistsUTF8(AFileName2) then exit;
  
positive.code:   DoOnChangeCaption;
    DoShow;
  
    if Assigned(FBin) then
      if FBin.Visible and FBin.CanFocus then
      begin
        EditorFocus(FBin);
        exit;
      end;
  
    if Assigned(FImageBox) then
      if FImageBox.Visible and FImageBox.CanFocus then
      begin
        FImageBox.SetFocus;
        exit;
      end;
  
    if Visible and Enabled then
      EditorFocus(Editor);
  end;
  
  type
  
negative.code:   end;
  
    ViewerApplyTheme(FBin);
    FBin.Show;
    FBin.Mode:= AMode;
    FBin.OpenStream(FBinStream);
  
  