Vcl.Edge.TEdgeBrowser Events

From RAD Studio API Documentation
Jump to: navigation, search


InheritedProtected
OnAlignInsertBeforeprotectedOccurs when an object with custom alignment is aligned.
OnAlignPositionprotectedOccurs when an object with custom alignment is aligned.
OnCanResizeprotectedOccurs when an attempt is made to resize the control.
OnCapturePreviewCompletedpublishedFires when the captured screenshot of the WebView has been saved.
OnClickprotectedOccurs when the user clicks the control.
OnConstrainedResizeprotectedAdjusts the resize constraints.
OnContainsFullScreenElementChangedpublishedFires 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.

See Also

Vcl.Edge.TCustomEdgeBrowser.ContainsFullScreenElement
OnContentLoadingpublishedFires before any content is loaded. This follows the OnNavigationStarting and OnSourceChanged events and precedes the OnHistoryChanged and OnNavigationCompleted events.

See Also

Vcl.Edge.TEdgeBrowser.OnNavigationStarting

Vcl.Edge.TEdgeBrowser.OnSourceChanged

Vcl.Edge.TEdgeBrowser.OnHistoryChanged

Vcl.Edge.TEdgeBrowser.OnNavigationCompleted
OnContextPopupprotectedOccurs when the user right-clicks the control or otherwise invokes the pop-up menu (such as using the keyboard).
OnCreateWebViewCompletedpublishedFires when the WebView control creation has completed, either successfully or unsuccessfully (for example Edge is not installed or the WebView2 control cannot load).
OnDblClickprotectedOccurs when the user double-clicks the left mouse button when the mouse pointer is over the control.
OnDevToolsProtocolEventReceivedpublishedFires when a Chrome DevTools Protocol event, previously subscribed to with SubscribeToCDPEvent, occurs.

See Also

Vcl.Edge.TCustomEdgeBrowser.SubscribeToCDPEvent
OnDockDropprotectedOccurs when another control is docked to the control.
OnDockOverprotectedOccurs when another control is dragged over the control.
OnDocumentTitleChangedpublishedFires when the DocumentTitle property of the WebView changes and may fire before or after the OnNavigationCompleted event.

See Also

Vcl.Edge.TEdgeBrowser.OnNavigationCompleted
OnDragDropprotectedOccurs when the user drops an object being dragged.
OnDragOverprotectedOccurs when the user drags an object over a control.
OnEndDockprotectedOccurs when the dragging of an object ends, either by docking the object or by canceling the dragging.
OnEndDragprotectedOccurs when the dragging of an object ends, either by dropping the object or by canceling the dragging.
OnEnterpublishedOccurs when a control receives the input focus.
OnExecuteScriptpublishedFires when script, as invoked by ExecuteScript, completes.
OnExitpublishedOccurs when the input focus shifts away from one control to another.
OnFrameNavigationCompletedpublishedFires when a child frame in the WebView has completely loaded or loading stopped with error.
OnFrameNavigationStartingpublishedFires when a child frame in the WebView requests permission to navigate to a different URI. This will fire for redirects as well.
OnGesturepublicOccurs when you perform a gesture associated with this control.
OnGetDeltaStreamsprotected
OnGetSiteInfoprotectedReturns the control's docking information.
OnHistoryChangedpublishedFires on change of navigation history for the top level document.

OnHistoryChanged fires after OnSourceChanged and OnContentLoading.

See Also

Vcl.Edge.TEdgeBrowser.OnSourceChanged

Vcl.Edge.TEdgeBrowser.OnContentLoading
OnKeyDownprotectedOccurs when a user presses any key while the control has focus.
OnKeyPressprotectedOccurs when a key is pressed.
OnKeyUpprotectedOccurs when the user releases a key that was pressed.
OnMouseActivateprotectedOccurs when the user presses a mouse button with the mouse pointer over a control and the parent form is not active.
OnMouseDownprotectedOccurs when the user presses a mouse button with the mouse pointer over a control.
OnMouseEnterprotectedOccurs when the user moves the mouse into a control.
OnMouseLeaveprotectedOccurs when the user moves the mouse outside of a control.
OnMouseMoveprotectedOccurs when the user moves the mouse pointer while the mouse pointer is over a control.
OnMouseUpprotectedOccurs when the user releases a mouse button that was pressed with the mouse pointer over a component.
OnMouseWheelprotectedOccurs when the mouse wheel is rotated.
OnMouseWheelDownprotectedOccurs when the mouse wheel is rotated downward.
OnMouseWheelUpprotectedOccurs when the mouse wheel is rotated upward.
OnNavigationCompletedpublishedFires when the WebView has completely loaded or loading stopped with error.
OnNavigationStartingpublishedFires when the WebView main frame requests permission to navigate to a different URI. This will fire for redirects as well.
OnNewWindowRequestedpublishedFires when content inside the WebView requested to open a new window, such as through window.open or through a context menu.
OnPermissionRequestedpublishedFires when content in a WebView requests permission to access a privileged resource.
OnProcessFailedpublishedFires when a WebView process is terminated unexpectedly or becomes unresponsive.
OnResizeprotectedOccurs immediately after the control is resized.
OnScriptDialogOpeningpublishedFires 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 Also

Vcl.Edge.TCustomEdgeBrowser.DefaultScriptDialogsEnabled
OnSourceChangedpublishedFires 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 Also

Vcl.Edge.TEdgeBrowser.OnContentLoading
OnStartDockprotectedOccurs when the user begins to drag a control with a DragKind of dkDock.
OnStartDragprotectedOccurs when the user begins to drag the control or an object it contains by left-clicking the control and holding the mouse button down.
OnUnDockprotectedOccurs when the application tries to undock a control that is docked to the windowed control.
OnWebMessageReceivedpublishedFires when the WebMessageEnabled property is True and the top level document of the W webView calls window.chrome.webview.postMessage.

See Also

Vcl.Edge.TCustomEdgeBrowser.WebMessageEnabled
OnWebResourceRequestedpublishedFires 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 Also

Vcl.Edge.TCustomEdgeBrowser.AddWebResourceRequestedFilter
OnWindowCloseRequestedpublishedFires 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.
OnZoomFactorChangedpublishedFires 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 Also

Vcl.Edge.TCustomEdgeBrowser.ZoomFactor
WindowProcpublicPoints to the window procedure that responds to messages sent to the control.