history.pas
来自「一个小小的浏览器,能打开网页,实现浏览器的功能,没有其它的功能」· PAS 代码 · 共 41 行
PAS
41 行
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 + =
减小字号Ctrl + -
显示快捷键?