Platforms to show: All Mac Windows Linux Cross-Platform

Back to DesktopWKWebViewControlMBS control.

Previous items

DesktopWKWebViewControlMBS.MouseDrag(x as Integer, y as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
This event fires continuously after the mouse button was pressed inside the Control.

Mouse location is local to the control passed in to x, y.
As this event is fired continuously (hundreds of time per second), it is your responsibility to determine if the mouse has really moved.

DesktopWKWebViewControlMBS.MouseUp(x as Integer, y as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
The mouse button was released.

Use the x and y parameters to determine if the mouse button was released within the control's boundaries.

DesktopWKWebViewControlMBS.navigationActionDidBecomeDownload(navigationAction as WKNavigationActionMBS, download as WKDownloadMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 22.3 ✅ Yes ❌ No ❌ No ❌ No
Tells the app that a navigation action became a download.
Example

Sub navigationActionDidBecomeDownload(navigationAction as WKNavigationActionMBS, download as WKDownloadMBS) Handles navigationActionDidBecomeDownload
System.DebugLog CurrentMethodName

// add download to your list of downloads you monitor
End Sub

navigationAction: Descriptive information about the navigation response that turned into a download.
download: An object that represents the download of a web resource.

Implement this method to begin tracking download progress.

DesktopWKWebViewControlMBS.navigationResponseDidBecomeDownload(navigationResponse as WKNavigationResponseMBS, download as WKDownloadMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 22.3 ✅ Yes ❌ No ❌ No ❌ No
Tells the app that a navigation response became a download.
Example

Sub navigationResponseDidBecomeDownload(navigationResponse as WKNavigationResponseMBS, download as WKDownloadMBS) Handles navigationResponseDidBecomeDownload
System.DebugLog CurrentMethodName

// add download to your list of downloads you monitor
End Sub

navigationResponse: Descriptive information about the navigation response that turned into a download.
download: An object that represents the download of a web resource.

Implement this method to begin tracking download progress.

DesktopWKWebViewControlMBS.Opening

Type Topic Version
event WebKit2 21.5

The control is about to was created and you can initialize it.
In older Xojo versions, this event is named Open.

DesktopWKWebViewControlMBS.runJavaScriptAlertPanel(initiatedByFrame as WKFrameInfoMBS, message as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
Displays a JavaScript alert panel.

message: The message to display.

If you do not implement this method, the web view will behave as if the user selected the OK button.

DesktopWKWebViewControlMBS.runJavaScriptConfirmPanel(initiatedByFrame as WKFrameInfoMBS, message as String) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
Displays a JavaScript confirm panel.

message: The message to display.

Return true if the user chose OK, false if the user chose Cancel.

If you do not implement this method, the web view will behave as if the user selected the Cancel button.

DesktopWKWebViewControlMBS.runJavaScriptTextInputPanel(initiatedByFrame as WKFrameInfoMBS, prompt as String, defaultText as String) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
Displays a JavaScript text input panel.

message: The message to display.
defaultText: The initial text to display in the text entry field.

Return the entered text if the user chose OK, otherwise "".

If you do not implement this method, the web view will behave as if the user selected the Cancel button.

DesktopWKWebViewControlMBS.runOpenPanelWithParameters(initiatedByFrame as WKFrameInfoMBS, allowsMultipleSelection as Boolean, allowsDirectories as Boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No
Displays a file upload panel.

Please call runOpenPanelWithParametersCompleted method later with result. Pass the selected URLs if the user chose "OK", otherwise nil.

You can use sheet window for the file picker and later call the runOpenPanelWithParametersCompleted method or call it right in the event if you do it synchronously.

If this method is not implemented, the web view behaves as if the user selected the Cancel button.

Not available on iOS. Implemented for macOS 64-bit applications.

DesktopWKWebViewControlMBS.ScaleFactorChanged(NewFactor as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
The backing store scale factor has changed.

Please invalidate any cached bitmaps or other relevant state.

DesktopWKWebViewControlMBS.takeSnapshotCompleted(image as NSImageMBS, error as NSErrorMBS, tag as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
Called when snapshot of website is completed.

If snapshot creation failed, error is set.

DesktopWKWebViewControlMBS.TitleChanged(Title as String, oldTitle as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
The title of the webpage changed.

DesktopWKWebViewControlMBS.WebContentProcessDidTerminate

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 22.3 ✅ Yes ❌ No ❌ No ❌ No
Tells the app that the web view’s content process was terminated.

Web views use a separate process to render and manage web content. WebKit calls this method when the process for the specified web view terminates for any reason.

DesktopWKWebViewControlMBS.willShowContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
Will show contextual menu.

Your chance to modify the menu before it is shown, e.g. to add menu entries.

Previous items

The items on this page are in the following plugins: MBS Mac64bit Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...