Reference TWebInspector
Declared in Codebot.WebKit.Controls.pas on line 432
TWebInspector is a control which hosts the inspector of a browser.
When Active is true the inspector of the associated browser is shown inside the control rather than in a window of its own.
Nothing is inspected at design time, where the control paints a magnifying glass icon. It paints the icon and a message if the WebKitGTK library is not installed.
On Windows the inspector is the developer tools page of WebView2, served by its debugging server. The server is started with the first web view, and only when an inspector control was created before it. Otherwise the developer tools open in a window of their own.
TWebInspector = class(TWinControl, IWebInspectorEvents)
protected
class procedure WSRegisterClass; override;
procedure InitializeWnd; override;
procedure DestroyWnd; override;
procedure PaintWindow(DC: HDC); override;
procedure Paint; virtual;
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
{ The inspector is a window of its own, which is resized with the control }
procedure Resize; override;
{ ControlCanvas is used to paint the control when it cannot host an
inspector }
property ControlCanvas: TControlCanvas read FCanvas;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
{ When Active is true this control shows the inspector of the browser }
property Active: Boolean read FActive write SetActive default False;
property Align;
property Anchors;
property BorderSpacing;
property Constraints;
property Enabled;
property Visible;
{ The browser to inspect }
property WebBrowser: TCustomWebBrowser read FWebBrowser write SetWebBrowser;
end;See also
IWebInspectorEvents in Codebot.WebKit.Controls.Win.pas