About LoadEnd
Posted: Mon Jun 01, 2020 12:22 pm
Hello.
The event TChromium.OnLoadEnd is running in not main thread. Why in MiniBrowse example are not used any synchronization working with form components?
The event TChromium.OnLoadEnd is running in not main thread. Why in MiniBrowse example are not used any synchronization working with form components?
Code: Select all
procedure TMiniBrowserFrm.Chromium1LoadEnd(Sender: TObject;
const browser: ICefBrowser; const frame: ICefFrame;
httpStatusCode: Integer);
begin
if (frame = nil) or not(frame.IsValid) then exit;
if frame.IsMain then
StatusBar1.Panels[1].Text := 'main frame loaded : ' + quotedstr(frame.name)
else
StatusBar1.Panels[1].Text := 'frame loaded : ' + quotedstr(frame.name);
end;