Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

WKWebViewControlMBS.BoundsChanged
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.1 Yes Yes Yes No No
Function: The event called when the bounds, but not the frame, changed.

Feedback, Comments & Corrections

WKWebViewControlMBS.decidePolicyForNavigationAction(URL as String, NavigationType as String, modifierFlags as Integer, buttonNumber as Integer, newWindow as boolean, frameName as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 16.5 Yes No No No No
Function: Decides whether to allow or cancel a navigation.
Notes:
Return true to cancel or false to allow.
URL is the URL to load.
NavigationType defines what navigation is happening: LinkClicked, FormSubmitted, BackForward, Reload, FormResubmitted or Other.
modifierFlags: The keyboard modifiers.
buttonNumber: Which mouse button was clicked: 0 for left button, 1 for middle button, 2 for right button
newWindow: True if a new window should be opened or false if not.
frameName: The frame name. (32-bit only)

Feedback, Comments & Corrections

WKWebViewControlMBS.didCommitNavigation
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.0 Yes No No No No
Function: Invoked when content starts arriving for the main frame.

Feedback, Comments & Corrections

WKWebViewControlMBS.didFailNavigation(Error as NSErrorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.0 Yes No No No No
Function: Invoked when an error occurs during a committed main frame navigation.

Feedback, Comments & Corrections

WKWebViewControlMBS.didFailProvisionalNavigation(Error as NSErrorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.0 Yes No No No No
Function: Invoked when an error occurs while starting to load data for the main frame.

Feedback, Comments & Corrections

WKWebViewControlMBS.didFinishNavigation
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.0 Yes No No No No
Function: Invoked when a main frame navigation completes.
Notes: Same as DocumentComplete in HTMLViewer.

Feedback, Comments & Corrections

WKWebViewControlMBS.didReceiveScriptMessage(Body as Variant, name as String)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 18.0 Yes No No No No
Function: Invoked when a script message is received from a webpage.
Notes:
body: The body of the message. Automatic translated from Javascript types.
name: The name of the message handler to which the message is sent.

Feedback, Comments & Corrections

WKWebViewControlMBS.didReceiveServerRedirectForProvisionalNavigation
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.0 Yes No No No No
Function: Invoked when a server redirect is received for the main frame.

Feedback, Comments & Corrections

WKWebViewControlMBS.didStartProvisionalNavigation
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.0 Yes No No No No
Function: Invoked when a main frame navigation starts.

Feedback, Comments & Corrections

WKWebViewControlMBS.EnableMenuItems
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.1 Yes Yes Yes No No
Function: The event where you can enable menu items.

Feedback, Comments & Corrections

WKWebViewControlMBS.FrameChanged
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.1 Yes Yes Yes No No
Function: The event called when the frame changed.

Feedback, Comments & Corrections

WKWebViewControlMBS.GotFocus
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.1 Yes No No No No
Function: The control itself got focus.
Notes: This only fires if the control itself got focus and not a sub control.

Feedback, Comments & Corrections

WKWebViewControlMBS.JavaScriptEvaluated(JavaScript as String, Result as Variant, Error as NSErrorMBS, Tag as String)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 16.5 Yes No No No No
Function: JavaScript was evaluated.
Notes:
Error is only set with 64-bit, not with 32-bit.
Tag is passed from EvaluateJavaScript call.

Feedback, Comments & Corrections

WKWebViewControlMBS.LostFocus
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.1 Yes Yes Yes No No
Function: The control lost focus.
Notes: This only fires if the control itself lost focus and not a sub control.

Feedback, Comments & Corrections

WKWebViewControlMBS.MenuAction(HitItem as MenuItem) As Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.1 Yes No No No No
Function: Called when a menuitem is choosen.
Notes: This allows the control to react on its relevant menu items. Please return true if you handled it or false to give others a chance.

Feedback, Comments & Corrections

WKWebViewControlMBS.MouseDown(x as Integer, y as Integer, Modifiers as Integer) As Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.1 Yes No No No No
Function: The mouse button was pressed inside the control’s region at the location passed in to x, y.
Notes:
The coordinates x and y are local to the control, i.e. they represent the position of the mouse click relative to the upper-left corner or the Control.
Return True if you are going to handle the MouseDown. In such a case:
  • The Action event, if any, will not execute and the state of the object will not change.
  • You will receive the MouseDrag and MouseUp events.
If you return False, the system handles the MouseDown so the above event handlers do not get called.

Feedback, Comments & Corrections

WKWebViewControlMBS.MouseDrag(x as Integer, y as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.1 Yes No No No No
Function: This event fires continuously after the mouse button was pressed inside the Control.
Notes:
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.

Feedback, Comments & Corrections

WKWebViewControlMBS.MouseUp(x as Integer, y as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.1 Yes No No No No
Function: The mouse button was released.
Notes: Use the x and y parameters to determine if the mouse button was released within the control's boundaries.

Feedback, Comments & Corrections

WKWebViewControlMBS.runJavaScriptAlertPanel(message as String)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 16.5 Yes No No No No
Function: Displays a JavaScript alert panel.
Notes:
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.

Feedback, Comments & Corrections

WKWebViewControlMBS.runJavaScriptConfirmPanel(message as String) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 16.5 Yes No No No No
Function: Displays a JavaScript confirm panel.
Notes:
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.

Feedback, Comments & Corrections

WKWebViewControlMBS.runJavaScriptTextInputPanel(prompt as String, defaultText as String) as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 16.5 Yes No No No No
Function: Displays a JavaScript text input panel.
Notes:
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.

Feedback, Comments & Corrections

WKWebViewControlMBS.ScaleFactorChanged(NewFactor as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.1 Yes No No No No
Function: The backing store scale factor has changed.
Notes: Please invalidate any cached bitmaps or other relevant state.

Feedback, Comments & Corrections

WKWebViewControlMBS.takeSnapshotCompleted(image as NSImageMBS, error as NSErrorMBS, tag as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS Mac64bit Plugin 17.4 Yes No No No No
Function: Called when snapshot of website is completed.
Notes: If snapshot creation failed, error is set.

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins