Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

WebViewMBS.insertNewline
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to insert a newline character at the insertion point or selection, deleting the selection if there is one, or to end editing if the receiver is a text field or other field editor.

Feedback, Comments & Corrections

WebViewMBS.insertParagraphSeparator
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to insert a paragraph separator at the insertion point or selection, deleting the selection if there is one.

Feedback, Comments & Corrections

WebViewMBS.insertTab
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to insert a tab character at the insertion point or selection, deleting the selection if there is one, or to end editing if the receiver is a text field or other field editor.

Feedback, Comments & Corrections

InstallWebFrameLoadDelegate(extends w as WebViewMBS, theDelegate as WebFrameLoadDelegateMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method HTMLViewer Mac MBS MacControls Plugin 8.5 Yes No No Yes, macOS only No
Function: Installs a WebFrameLoadDelegateMBS to receive events from a webview control.
Notes: You need to keep a reference to this WebFrameLoadDelegateMBS object in the window where the htmlviewer is inside so the class is not destroyed too early.

Feedback, Comments & Corrections

InstallWebPolicyDelegate(extends w as WebViewMBS, theDelegate as WebPolicyDelegateMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method HTMLViewer Mac MBS MacControls Plugin 8.4 Yes No No Yes, macOS only No
Function: Installs a WebPolicyDelegateMBS to receive events from a webview control.
Notes: You need to keep a reference to this WebPolicyDelegateMBS object in the window where the htmlviewer is inside so the class is not destroyed too early.

Feedback, Comments & Corrections

InstallWebResourceLoadDelegate(extends w as WebViewMBS, theDelegate as WebResourceLoadDelegateMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method HTMLViewer Mac MBS MacControls Plugin 8.4 Yes No No Yes, macOS only No
Function: Installs a WebResourceLoadDelegateMBS to receive events from a webview control.
Notes: You need to keep a reference to this WebResourceLoadDelegateMBS object in the window where the WebView is inside so the class is not destroyed too early.

Feedback, Comments & Corrections

InstallWebUIDelegate(extends w as WebViewMBS, theDelegate as WebUIDelegateMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method HTMLViewer Mac MBS MacControls Plugin 8.4 Yes No No Yes, macOS only No
Function: Installs a HTMLViewerUIDelegateMBS to receive events from a webview control.
Notes: You need to keep a reference to this HTMLViewerUIDelegateMBS object in the window where the htmlviewer is inside so the class is not destroyed too early.

Feedback, Comments & Corrections

WebViewMBS.LoadHTMLString(data as memoryblock, mime as string, encoding as string, url as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 7.7 Yes No No Yes, macOS only No
Function: Loads data as a webpage.
Example:
webview.LoadHTMLString "<b>test</b>","text/plain","","" // show as plain text
webview.LoadHTMLString "<b>test</b>","text/html","","" // show as html
Notes:
data: The data to use for the main page of the document.
mime: The MIME type of the data. e.g. "text/html"
textencoding: The encoding of the data.
url: The base URL to apply to relative URLs within the document.

All parameters can be empty if needed.
Using "text/plain" mime type you can show source code of website.

Like most Webkit Methods this one can not be called from a thread.

See also:

Feedback, Comments & Corrections

WebViewMBS.LoadHTMLString(text as string, url as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 7.7 Yes No No Yes, macOS only No
Function: Loads a html page from a string.
Notes:
html: The string to use for the main page of the document.
url: The base URL to apply to relative URLs within the document. (optional)

Like most Webkit Methods this one can not be called from a thread.

See also:

Feedback, Comments & Corrections

WebViewMBS.LoadRequest(request as NSURLRequestMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 9.4 Yes No No Yes, macOS only No
Function: Loads the given url request.
Notes: Like most Webkit Methods this one can not be called from a thread.

Feedback, Comments & Corrections

WebViewMBS.LoadURL(url as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 7.7 Yes No No Yes, macOS only No
Function: Loads the url.
Example:
webview.LoadURL "http://www.monkeybreadsoftware.de"
Notes:
Like most Webkit Methods this one can not be called from a thread.
Internally this calls LoadRequest with a NSURLRequest based on the given URL.

See also:

Feedback, Comments & Corrections

WebViewMBS.LoadURL(url as string, CachePolicy as Integer, TimeOut as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 7.7 Yes No No Yes, macOS only No
Function: Loads the URL.
Example:
webview.LoadURL "http://www.monkeybreadsoftware.de", 1, 2.0
Notes:
The timeout interval is in seconds.

Constants for the CachePolicy parameter:
const UseProtocolCachePolicy= 0Specifies that the caching logic defined in the protocol implementation, if any, is used for a particular URL load request. This is the default policy for URL load requests.
const ReloadIgnoringCacheData= 1Specifies that the data for the URL load should be loaded from the originating source. No existing cache data should be used to satisfy a URL load request.
const ReturnCacheDataElseLoad= 2Specifies that the existing cached data should be used to satisfy the request, regardless of its age or expiration date. If there is no existing data in the cache corresponding the request, the data is loaded from the originating source.
const ReturnCacheDataDontLoad= 3Specifies that the existing cache data should be used to satisfy a request, regardless of its age or expiration date. If there is no existing data in the cache corresponding to a URL load request, no attempt is made to load the data from the originating source, and the load is considered to have failed. This constant specifies a behavior that is similar to an "offline" mode.

Like most Webkit Methods this one can not be called from a thread.
Internally this calls LoadRequest with a NSURLRequest based on the given URL.

See also:

Feedback, Comments & Corrections

WebViewMBS.lowercaseWord
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to make lowercase every letter in the word or words surrounding the insertion point or selection, expanding the selection if necessary.
Notes: If either end of the selection partially covers a word, that entire word is made lowercase. NSResponder declares, but doesn't implement this method.

Feedback, Comments & Corrections

WebViewMBS.mainFrame as WebFrameMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 7.2 Yes No No Yes, macOS only No
Function: The main webframe currently displayed.
Notes: Nil if no is present.

Feedback, Comments & Corrections

WebViewMBS.makeTextLarger
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 7.7 Yes No No Yes, macOS only No
Function: Increases the text size in the webview.

Feedback, Comments & Corrections

WebViewMBS.makeTextSmaller
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 7.7 Yes No No Yes, macOS only No
Function: Decreases the text size in the webview.

Feedback, Comments & Corrections

WebViewMBS.mediaStyle as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property HTMLViewer Mac MBS MacControls Plugin 7.2 Yes No No Yes, macOS only No
Function: The value to use for the CSS media property.
Example:
dim w as WebViewMBS // your WebView
w.mediaStyle="print"
Notes:
Set or get the media style for the WebView. The mediaStyle will override the normal value of the CSS media property. Setting the value to nil will restore the normal value.
(Read and Write computed property)

Feedback, Comments & Corrections

WebViewMBS.mediaVolume as single
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 11.0 Yes No No Yes, macOS only No
Function: Queries the maximum volume of all sounds generated on this webview.
Notes: This is a new webview function which is not available on all webview versions. So be aware that you may get an NSExceptionMBS about the function not being available.

Feedback, Comments & Corrections

WebViewMBS.moveBackward
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to move the selection or insertion point one element or character backward.
Notes: In text, if there is a selection it should be deselected, and the insertion point should be placed at the beginning of the former selection.

Feedback, Comments & Corrections

WebViewMBS.moveBackwardAndModifySelection
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to expand or reduce either end of the selection backward by one element or character.
Notes: If the end being modified is the backward end, this method expands the selection; if the end being modified is the forward end, it reduces the selection. The first moveBackwardAndModifySelection or moveForwardAndModifySelection method in a series determines the end being modified by always expanding. Hence, this method results in the backward end becoming the mobile one if invoked first. By default, moveLeftAndModifySelection is bound to the left arrow key.

Feedback, Comments & Corrections

WebViewMBS.moveDown
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to move the selection or insertion point one element or character down.
Notes: In text, if there is a selection it should be deselected, and the insertion point should be placed below the beginning of the former selection.

Feedback, Comments & Corrections

WebViewMBS.moveDownAndModifySelection
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to expand or reduce the top or bottom end of the selection downward by one element, character, or line (whichever is appropriate for text direction).
Notes: If the end being modified is the bottom, this method expands the selection; if the end being modified is the top, it reduces the selection. The first moveDownAndModifySelection or moveUpAndModifySelection method in a series determines the end being modified by always expanding. Hence, this method results in the bottom end becoming the mobile one if invoked first.

Feedback, Comments & Corrections

WebViewMBS.moveForward
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to move the selection or insertion point one element or character forward.
Notes: In text, if there is a selection it should be deselected, and the insertion point should be placed at the end of the former selection.

Feedback, Comments & Corrections

WebViewMBS.moveForwardAndModifySelection
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to expand or reduce either end of the selection forward by one element or character.
Notes: If the end being modified is the backward end, this method reduces the selection; if the end being modified is the forward end, it expands the selection. The first moveBackwardAndModifySelection or moveForwardAndModifySelection method in a series determines the end being modified by always expanding. Hence, this method results in the forward end becoming the mobile one if invoked first. By default, moveRightAndModifySelection is bound to the right arrow key.

Feedback, Comments & Corrections

WebViewMBS.moveLeft
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to move the selection or insertion point one element or character to the left.
Notes: In text, if there is a selection it should be deselected, and the insertion point should be placed at the left end of the former selection.

Feedback, Comments & Corrections

WebViewMBS.moveLeftAndModifySelection
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to expand or reduce either end of the selection to the left (display order) by one element or character.
Notes:
If the end being modified is the left end, this method expands the selection; if the end being modified is the right end, it reduces the selection. The first moveLeftAndModifySelection or moveRightAndModifySelection method in a series determines the end being modified by always expanding. Hence, this method results in the left end becoming the mobile one if invoked first. By default, this method is bound to the left arrow key.

The essential difference between this method and the corresponding moveBackwardAndModifySelection is that the latter method moves in logical order, which can differ in bidirectional text, whereas this method moves in display order.

Feedback, Comments & Corrections

WebViewMBS.moveRight
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to move the selection or insertion point one element or character to the right.
Notes: In text, if there is a selection it should be deselected, and the insertion point should be placed at the right end of the former selection.

Feedback, Comments & Corrections

WebViewMBS.moveRightAndModifySelection
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to expand or reduce either end of the selection to the right (display order) by one element or character.
Notes:
If the end being modified is the left end, this method reduces the selection; if the end being modified is the right end, it expands the selection. The first moveLeftAndModifySelection or moveRightAndModifySelection method in a series determines the end being modified by always expanding. Hence, this method results in the right end becoming the mobile one if invoked first. By default, this method is bound to the right arrow key.

The essential difference between this method and the corresponding moveForwardAndModifySelection is that the latter method moves in logical order, which can differ in bidirectional text, whereas this method moves in display order.

Feedback, Comments & Corrections

WebViewMBS.moveToBeginningOfDocument
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to move the selection to the first element of the document or the insertion point to the beginning.

Feedback, Comments & Corrections

WebViewMBS.moveToBeginningOfDocumentAndModifySelection
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: Implemented by WebView to move the selection or insertion point to the beginning of the document, expanding or reducing the current selection.

Feedback, Comments & Corrections

Previous items Next items

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




Links
MBS Xojo Plugins