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 |
This item is deprecated and should no longer be used.
Notes:
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.
- 34 events
- event AreToolbarsVisible as boolean
- event Close
- event ContextMenuItemsForElement(elementInformation as Dictionary, defaultMenuItems() as NSMenuItemMBS) as NSMenuItemMBS()
- event CreateWithRequest(Request as NSURLRequestMBS) as object
- event dragDestinationActionMaskForDraggingInfo(draggingInfo as NSDraggingInfoMBS) as Integer
- event dragSourceActionMaskForPoint(x as Double, y as Double) as Integer
- event drawFooterInRect(rect as NSRectMBS, g as NSGraphicsMBS)
- event drawHeaderInRect(rect as NSRectMBS, g as NSGraphicsMBS)
- event FooterHeight as single
- event GetContentRect(byref left as Double, byref top as Double, byref width as Double, byref height as Double) as boolean
- event GetFrame(byref left as Double, byref top as Double, byref width as Double, byref height as Double) as boolean
- event GetStatusText as String
- event HeaderHeight as single
- event IsResizable as boolean
- event IsStatusBarVisible as boolean
- event MouseDidMoveOverElement(elementInformation as Dictionary, modifierFlags as Integer) as boolean
- event Open
- event printFrameView(frameView as WebFrameViewMBS)
- event RunJavaScriptAlertPanelWithMessage(message as String)
- event RunJavaScriptConfirmPanelWithMessage(message as String) as boolean
- event RunJavaScriptTextInputPanelWithPrompt(prompt as String, defaultText as String) as String
- event runOpenPanelForFileButtonWithResultListener(listener as WebOpenPanelResultListenerMBS, allowMultipleFiles as boolean) as boolean
- event SetContentRect(left as Double, top as Double, width as Double, height as Double) as boolean
- event SetFrame(left as Double, top as Double, width as Double, height as Double) as boolean
- event SetResizable(resizeable as boolean) as boolean
- event SetStatusBarVisible(visible as boolean) as boolean
- event SetStatusText(text as String) as boolean
- event SetToolbarsVisible(visible as boolean) as boolean
- event willPerformDragDestinationAction(WebDragDestinationAction as Integer, draggingInfo as NSDraggingInfoMBS)
- event willPerformDragSourceAction(WebDragDestinationAction as Integer, X as Double, Y as Double, pasteboard as NSPasteboardMBS)
- event WindowClose as boolean
- event WindowFocus as boolean
- event WindowShow as boolean
- event WindowUnfocus as boolean
- 2 properties
- property DisableContextMenu as Boolean
- property DisableNewWindow as Boolean
- method Constructor
- 5 constants
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:
- InstallWebUIDelegate(extends w as WebViewMBS, theDelegate as WebUIDelegateMBS)
Blog Entries
- MBS Xojo Plugins, version 18.4pr3
- MonkeyBread Software Releases the MBS Xojo Plugins in version 18.2
- MBS Xojo Plugins, version 18.2pr5
- MBS Xojo / Real Studio Plugins, version 16.1pr2
- MBS Releases the MBS Xojo / Real Studio plug-ins in version 15.1
- MBS Xojo / Real Studio Plugins, version 15.1pr4
- Multiple file selection for WebViewer/HTMLViewer
- MBS Real Studio Plugins, version 11.3pr6
- MBS Real Studio Plugins, version 11.2pr4
- MBS Real Studio Plugins, version 11.1pr11
Xojo Developer Magazine
Videos
The items on this page are in the following plugins: MBS MacControls Plugin.
WebScriptObjectMBS - WebView2ExceptionMBS
Feedback: Report problem or ask question.