代码拉取完成,页面将自动刷新
同步操作将从 lobtao/php_desktop 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
unit ufrmModal;
interface
uses
Classes, Controls, Forms,
DynamicSkinForm, uCEFChromium,
uframeChrome, uCEFInterfaces, uCEFTypes, SysUtils;
type
TfrmModal = class(TForm)
frameChrome1: TframeChrome;
DSF: TspDynamicSkinForm;
procedure FormShow(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
procedure frameChrome1Chromium1TitleChange(Sender: TObject;
const browser: ICefBrowser; const title: ustring);
procedure FormDestroy(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
FUrl: string;
protected
public
{ Public declarations }
procedure setInfo(Caption: string; Url: string; width, height: Integer);
end;
var
frmModal: TfrmModal;
implementation
uses
unMoudle, unChromeMessage;
{$R *.dfm}
{ TfrmModel }
procedure TfrmModal.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action := caFree;
end;
procedure TfrmModal.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
CanClose := frameChrome1.FCanClose;
if not(frameChrome1.FClosing) then
begin
frameChrome1.FClosing := True;
Visible := False;
frameChrome1.Chromium1.CloseBrowser(True);
end;
end;
procedure TfrmModal.FormCreate(Sender: TObject);
begin
// ע
// if Assigned(subject) then
// subject.attach(Self.Handle);
end;
procedure TfrmModal.FormDestroy(Sender: TObject);
begin
// ע
// if Assigned(subject) then
// subject.unAttach(Self.Handle);
end;
procedure TfrmModal.FormShow(Sender: TObject);
begin
frameChrome1.setInfo(Self, Self.FUrl);
if fsModal in Self.FormState then
Self.FormStyle := fsNormal;
end;
procedure TfrmModal.frameChrome1Chromium1TitleChange(Sender: TObject;
const browser: ICefBrowser; const title: ustring);
var
tmpTitle: string;
begin
if Self.Caption <> '' then
Exit;
tmpTitle := Trim(title);
if (tmpTitle <> '') and (tmpTitle <> 'about:blank') then
Self.Caption := tmpTitle;
end;
procedure TfrmModal.setInfo(Caption, Url: string; width, height: Integer);
begin
Self.Caption := Trim(Caption);
Self.width := width;
Self.height := height;
Self.FUrl := Url;
end;
end.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。