Reference TWSWebBrowser
Declared in Codebot.WebKit.Controls.Win.pas on line 79
TWSWebBrowser hosts a Microsoft Edge WebView2 web view in a browser control. The web view is created in the background after the window of the control, so changes made before it is ready are kept and applied once it is. The routines other than CreateHandle do nothing when the control has no web view, which is the case at design time or when WebView2 is not available.
TWSWebBrowser = class(TWin32WSWinControl)
published
class function CreateHandle(const AWinControl: TWinControl; const AParams: TCreateParams): HWND; override;
class procedure DestroyHandle(const AWinControl: TWinControl); override;
class procedure ShowHide(const AWinControl: TWinControl); override;
{ Resize the web view to the client area of the control }
class procedure UpdateBounds(AWinControl: TWinControl);
{ Give the input focus to the web view }
class procedure FocusView(AWinControl: TWinControl);
class procedure Load(AWinControl: TWinControl; const Uri: string);
class procedure LoadHtml(AWinControl: TWinControl; const Html: string);
class procedure Stop(AWinControl: TWinControl);
class procedure Reload(AWinControl: TWinControl);
class function GetLoading(AWinControl: TWinControl): Boolean;
class procedure ExecuteScript(AWinControl: TWinControl; const Script: string);
class procedure BackOrForward(AWinControl: TWinControl; Steps: Integer);
class function BackOrForwardExists(AWinControl: TWinControl; Steps: Integer): Boolean;
class procedure SetEditable(AWinControl: TWinControl; Value: Boolean);
class procedure SetZoomFactor(AWinControl: TWinControl; Value: Double);
class procedure SetZoomTextOnly(AWinControl: TWinControl; Value: Boolean);
class procedure SetDeveloperTools(AWinControl: TWinControl; Value: Boolean);
class procedure ShowInspector(AWinControl: TWinControl; Show: Boolean);
class procedure Print(AWinControl: TWinControl);
class procedure CaptureToClipboard(AWinControl: TWinControl);
class function HistoryItem(AWinControl: TWinControl; Steps: Integer; out Title, Uri: string): Boolean;
class procedure Download(AWinControl: TWinControl; const Uri: string);
class procedure CancelDownload(Download: Pointer);
class function DownloadFolder: string;
end;