Code: Select all
if GlobalWebView2Loader.InitializationError then
showmessage(GlobalWebView2Loader.ErrorMessage)
else if GlobalWebView2Loader.Initialized then
WVBrowser1.CreateBrowser(WVWindowParent1.Handle)
Code: Select all
function TWVLoader.GetInitializationError : boolean;
begin
Result := (FStatus = wvlsError);
end;