Platforms to show: All Mac Windows Linux Cross-Platform

WebUIDelegateMBS class   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
class HTMLViewer Mac MBS MacControls Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: A class to handle user interface requests.
This item is deprecated and should no longer be used.
This classs is not available in Xojo 2020r1 or newer.

The plugin is very careful on which events it registers.
All events where you don't have code inside (not even comments), is not registered with the system and you get the default behavior.

All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.

Please use one delegate class per HTMLViewer (or WebViewMBS) and make sure they live about the same time. Our class keeps a reference on the WebView, so we can remove our delegate when the delegate is destroyed.

Drag Actions

Constant Value Description
WebDragDestinationActionAny -1 Allows any defined action to occur.
WebDragDestinationActionDHTML 1 Allows DHTML (such as JavaScript) to handle the drag.
WebDragDestinationActionEdit 2 Allows editable documents to be changed by the drag operation.
WebDragDestinationActionLoad 4 Allows the drag operation to change the location.
WebDragDestinationActionNone 0 No action.

This class has no sub classes.

Some useful global functions for this class:

Blog Entries

Xojo Developer Magazine


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

WebScriptObjectMBS   -   WebView2ExceptionMBS

Feedback: Report problem or ask question.

The biggest plugin in space...

Start Chat