Vcl.Edge.TEdgeBrowser Events
InheritedProtected
OnAlignInsertBefore | protected | Occurs when an object with custom alignment is aligned. |
OnAlignPosition | protected | Occurs when an object with custom alignment is aligned. |
OnCanResize | protected | Occurs when an attempt is made to resize the control. |
OnCapturePreviewCompleted | published | Fires when the captured screenshot of the WebView has been saved. |
OnClick | protected | Occurs when the user clicks the control. |
OnConstrainedResize | protected | Adjusts the resize constraints. |
OnContainsFullScreenElementChanged | published | Fires when the ContainsFullScreenElement property changes, which means that an HTML element inside the WebView is entering or leaving fullscreen. The event handler can make the control larger or smaller as required.
ContentsSee AlsoVcl.Edge.TCustomEdgeBrowser.ContainsFullScreenElement |
OnContentLoading | published | Fires before any content is loaded. This follows the OnNavigationStarting and OnSourceChanged events and precedes the OnHistoryChanged and OnNavigationCompleted events.
See AlsoVcl.Edge.TEdgeBrowser.OnNavigationStarting Vcl.Edge.TEdgeBrowser.OnSourceChanged Vcl.Edge.TEdgeBrowser.OnHistoryChanged Vcl.Edge.TEdgeBrowser.OnNavigationCompleted |
OnContextPopup | protected | Occurs when the user right-clicks the control or otherwise invokes the pop-up menu (such as using the keyboard). |
OnCreateWebViewCompleted | published | Fires when the WebView control creation has completed, either successfully or unsuccessfully (for example Edge is not installed or the WebView2 control cannot load). |
OnDblClick | protected | Occurs when the user double-clicks the left mouse button when the mouse pointer is over the control. |
OnDevToolsProtocolEventReceived | published | Fires when a Chrome DevTools Protocol event, previously subscribed to with SubscribeToCDPEvent, occurs.
See AlsoVcl.Edge.TCustomEdgeBrowser.SubscribeToCDPEvent |
OnDockDrop | protected | Occurs when another control is docked to the control. |
OnDockOver | protected | Occurs when another control is dragged over the control. |
OnDocumentTitleChanged | published | Fires when the DocumentTitle property of the WebView changes and may fire before or after the OnNavigationCompleted event.
See AlsoVcl.Edge.TEdgeBrowser.OnNavigationCompleted |
OnDragDrop | protected | Occurs when the user drops an object being dragged. |
OnDragOver | protected | Occurs when the user drags an object over a control. |
OnEndDock | protected | Occurs when the dragging of an object ends, either by docking the object or by canceling the dragging. |
OnEndDrag | protected | Occurs when the dragging of an object ends, either by dropping the object or by canceling the dragging. |
OnEnter | published | Occurs when a control receives the input focus. |
OnExecuteScript | published | Fires when script, as invoked by ExecuteScript, completes. |
OnExit | published | Occurs when the input focus shifts away from one control to another. |
OnFrameNavigationCompleted | published | Fires when a child frame in the WebView has completely loaded or loading stopped with error. |
OnFrameNavigationStarting | published | Fires when a child frame in the WebView requests permission to navigate to a different URI. This will fire for redirects as well. |
OnGesture | public | Occurs when you perform a gesture associated with this control. |
OnGetDeltaStreams | protected | |
OnGetSiteInfo | protected | Returns the control's docking information. |
OnHistoryChanged | published | Fires on change of navigation history for the top level document.
OnHistoryChanged fires after OnSourceChanged and OnContentLoading. See AlsoVcl.Edge.TEdgeBrowser.OnSourceChanged Vcl.Edge.TEdgeBrowser.OnContentLoading |
OnKeyDown | protected | Occurs when a user presses any key while the control has focus. |
OnKeyPress | protected | Occurs when a key is pressed. |
OnKeyUp | protected | Occurs when the user releases a key that was pressed. |
OnMouseActivate | protected | Occurs when the user presses a mouse button with the mouse pointer over a control and the parent form is not active. |
OnMouseDown | protected | Occurs when the user presses a mouse button with the mouse pointer over a control. |
OnMouseEnter | protected | Occurs when the user moves the mouse into a control. |
OnMouseLeave | protected | Occurs when the user moves the mouse outside of a control. |
OnMouseMove | protected | Occurs when the user moves the mouse pointer while the mouse pointer is over a control. |
OnMouseUp | protected | Occurs when the user releases a mouse button that was pressed with the mouse pointer over a component. |
OnMouseWheel | protected | Occurs when the mouse wheel is rotated. |
OnMouseWheelDown | protected | Occurs when the mouse wheel is rotated downward. |
OnMouseWheelUp | protected | Occurs when the mouse wheel is rotated upward. |
OnNavigationCompleted | published | Fires when the WebView has completely loaded or loading stopped with error. |
OnNavigationStarting | published | Fires when the WebView main frame requests permission to navigate to a different URI. This will fire for redirects as well. |
OnNewWindowRequested | published | Fires when content inside the WebView requested to open a new window, such as through window.open or through a context menu. |
OnPermissionRequested | published | Fires when content in a WebView requests permission to access a privileged resource. |
OnProcessFailed | published | Fires when a WebView process is terminated unexpectedly or becomes unresponsive. |
OnResize | protected | Occurs immediately after the control is resized. |
OnScriptDialogOpening | published | Fires when a JavaScript dialog (alert, confirm, or prompt) will show for the Webview.
This event only fires if the DefaultScriptDialogsEnabled property is False. The ScriptDialogOpening event can be used to suppress dialogs or replace default dialogs with custom dialogs. See AlsoVcl.Edge.TCustomEdgeBrowser.DefaultScriptDialogsEnabled |
OnSourceChanged | published | Fires for navigating to a different site or fragment navigations. It will not fire for other types of navigations such as page reloads.
OnSourceChanged fires before OnContentLoading for navigating to a new document. See AlsoVcl.Edge.TEdgeBrowser.OnContentLoading |
OnStartDock | protected | Occurs when the user begins to drag a control with a DragKind of dkDock . |
OnStartDrag | protected | Occurs when the user begins to drag the control or an object it contains by left-clicking the control and holding the mouse button down. |
OnUnDock | protected | Occurs when the application tries to undock a control that is docked to the windowed control. |
OnWebMessageReceived | published | Fires when the WebMessageEnabled property is True and the top level document of the W webView calls window.chrome.webview.postMessage.
See AlsoVcl.Edge.TCustomEdgeBrowser.WebMessageEnabled |
OnWebResourceRequested | published | Fires when the WebView is performing an HTTP request to a matching URL and resource context filter that was added with AddWebResourceRequestedFilter. At least one filter must be added for the event to fire.
See AlsoVcl.Edge.TCustomEdgeBrowser.AddWebResourceRequestedFilter |
OnWindowCloseRequested | published | Fires when content inside the WebView requested to close the window, such as after window.close is called. The app should close the WebView and related app window if that makes sense to the app. |
OnZoomFactorChanged | published | Fires when the ZoomFactor property of the WebView changes. The event could fire because the caller modified the ZoomFactor property, or due to the user manually modifying the zoom, but not from a programmatic change.
See AlsoVcl.Edge.TCustomEdgeBrowser.ZoomFactor |
WindowProc | public | Points to the window procedure that responds to messages sent to the control. |