Platforms to show: All Mac Windows Linux Cross-Platform
Back to DesktopWKWebViewControlMBS control.
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
DesktopWKWebViewControlMBS.WebContentProcessDidTerminate
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | WebKit2 | MBS Mac64bit Plugin | 22.3 | ✅ Yes | ❌ No | ❌ No | ❌ No |
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 |
Your chance to modify the menu before it is shown, e.g. to add menu entries.
The items on this page are in the following plugins: MBS Mac64bit Plugin.