⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 history.pas

📁 一个小小的浏览器,能打开网页,实现浏览器的功能,没有其它的功能
💻 PAS
字号:
unit History;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls;

type
  THistoryForm = class(TForm)
    HistoryListBox: TListBox;
    procedure HistoryListBoxDblClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  HistoryForm: THistoryForm;

implementation

uses main;

{$R *.DFM}

procedure THistoryForm.HistoryListBoxDblClick(Sender: TObject);
Var URL : String;
begin
  if HistoryListBox.ItemIndex <> -1 then begin
    URL := HistoryListBox.Items[HistoryListBox.ItemIndex];
    with main.MainForm do begin
      HTML1.RequestDoc(URL);
      Statusbar1.Panels[0].Text := HTML1.RequestURL;
    end;
  end;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -