Platforms to show: All Mac Windows Linux Cross-Platform

Next items

WebViewMBS.alignCenter
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 9.3 Yes No No Desktop only
Function: An action method that applies center alignment to selected content or all content if there's no selection.
Notes: Available in Mac OS X v10.3.9 and later.

Feedback, Comments & Corrections

WebViewMBS.alignJustified
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 9.3 Yes No No Desktop only
Function: An action method that applies full justification to selected content or all content if there's no selection.
Notes: Available in Mac OS X v10.3.9 and later.

Feedback, Comments & Corrections

WebViewMBS.alignLeft
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 9.3 Yes No No Desktop only
Function: An action method that applies left justification to selected content or all content if there's no selection.
Notes: Available in Mac OS X v10.3.9 and later.

Feedback, Comments & Corrections

WebViewMBS.alignRight
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 9.3 Yes No No Desktop only
Function: An action method that applies right justification to selected content or all content if there is no selection.
Notes: Available in Mac OS X v10.3.9 and later.

Feedback, Comments & Corrections

WebViewMBS.ApplicationNameForUserAgent as String
Type Topic Plugin Version macOS Windows Linux Targets
property HTMLViewer Mac MBS MacControls Plugin 7.2 Yes No No Desktop only
Function: The application name.
Example:
webview1.ApplicationNameForUserAgent="test"
// useragent is now "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/417.9 (KHTML, like Gecko) test"
Notes:
This name will be used in user-agent strings that are chosen for best results in rendering web pages.
(Read and Write computed property)

Feedback, Comments & Corrections

WebViewMBS.applyStyle(style as Variant)
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Desktop only
Function: Applies the CSS typing style to the current selection.
Example:
dim w as WebViewMBS = HTMLViewer1.WebViewMBS
dim doc as DOMDocumentMBS = w.mainFrame.DOMDocument
dim d as DOMCSSStyleDeclarationMBS = doc.createCSSStyleDeclaration

d.fontWeight="bold"

w.applyStyle d
Notes:
style: The style to apply to the current selection. Must be a DOMCSSStyleDeclarationMBS object.

This method does nothing if there is no current selection or if the current selection is collapsed.

This method hides the complexities of applying styles to elements. If necessary, this method will make multiple passes over the range of the current selection to ensure that the requested style is applied to the elements in that range, and takes into account the complexities of CSS style application rules. This method also simplifies styling attributes so that the minimum number of styling directives are used to yield a given computed style.

Feedback, Comments & Corrections

WebViewMBS.backForwardList as WebBackForwardListMBS
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 7.2 Yes No No Desktop only
Function: Returns the backforward list for this webView.
Notes: Nil on failure.

Feedback, Comments & Corrections

WebViewMBS.canGoBack as boolean
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 7.7 Yes No No Desktop only
Function: Whether the history can be used to move back one website.

Feedback, Comments & Corrections

WebViewMBS.canGoForward as boolean
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 7.7 Yes No No Desktop only
Function: Whether the history can be used to move forward one website.

Feedback, Comments & Corrections

WebViewMBS.canMakeTextLarger as boolean
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 7.7 Yes No No Desktop only
Function: Whether the text size can be increased.

Feedback, Comments & Corrections

WebViewMBS.canMakeTextSmaller as boolean
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 7.7 Yes No No Desktop only
Function: Whether the text size can be decreased.

Feedback, Comments & Corrections

WebViewMBS.canResetPageZoom as boolean
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 11.0 Yes No No Desktop only
Function: Whether web page can be reset.
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.CanShowMIMEType(mime as string) as boolean
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 7.2 Yes No No Desktop only
Function: Checks if the WebKit can show content of a certain MIME type.
Notes:
Returns false on any error and true on success.
See also MimeTypeToFileExtensionMBS function.

Feedback, Comments & Corrections

WebViewMBS.CanShowMIMETypeAsHTML(mime as string) as boolean
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 7.2 Yes No No Desktop only
Function: Checks if the the MIME type is a type that the WebKit will interpret as HTML.
Notes:
Returns false on any error and true on success.
See also MimeTypeToFileExtensionMBS function.

Feedback, Comments & Corrections

WebViewMBS.canZoomPageIn as boolean
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 11.0 Yes No No Desktop only
Function: Whether web page can be zoomed in.
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.canZoomPageOut as boolean
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 11.0 Yes No No Desktop only
Function: Whether web page can be zoomed out.
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.capitalizeWord
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Desktop only
Function: Implemented by WebView to capitalize 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. The sender argument is typically the object that invoked this method.

Feedback, Comments & Corrections

WebViewMBS.centerSelectionInVisibleArea
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Desktop only
Function: Implemented by WebView to scroll the selection, whatever it is, inside its visible area.

Feedback, Comments & Corrections

WebViewMBS.changeAttributes
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 9.3 Yes No No Desktop only
Function: An action method that changes the attributes of the current selection.
Notes: Available in Mac OS X v10.3.9 and later.

Feedback, Comments & Corrections

WebViewMBS.changeCaseOfLetter
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Desktop only
Function: Implemented by WebView to change the case of a letter or letters in the selection, perhaps by opening a panel with capitalization options or by cycling through possible case combinations.

Feedback, Comments & Corrections

WebViewMBS.changeColor
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 9.3 Yes No No Desktop only
Function: Sets the color of the selected content.
Notes:
This method is invoked by the NSColorPanel sender.
Available in Mac OS X v10.3.9 and later.

Feedback, Comments & Corrections

WebViewMBS.changeDocumentBackgroundColor
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 9.3 Yes No No Desktop only
Function: Sets the background color of the selected content.
Notes:
This method is invoked by the NSColorPanel sender.

Available in Mac OS X v10.3.9 and later.

Feedback, Comments & Corrections

WebViewMBS.changeFont
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 9.3 Yes No No Desktop only
Function: An action method that changes the font of the selection, or all content if there is no selection.
Notes:
If the receiver doesn't use the Fonts panel, this method does nothing.

Available in Mac OS X v10.3.9 and later.

Feedback, Comments & Corrections

WebViewMBS.checkSpelling
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 9.3 Yes No No Desktop only
Function: An action method that searches for a misspelled word in the receiver.
Notes:
This action method starts a search at the end of the selection and continues until it reaches a word suspected of being misspelled or the end of the content. If a word isn't recognized by the spelling server, a showGuessPanel message is sent to the receiver which opens the Guess panel and allows the user to make a correction or add the word to the local dictionary.

Available in Mac OS X v10.3.9 and later.

Feedback, Comments & Corrections

WebViewMBS.ClearFocus
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 7.7 Yes No No Desktop only
Function: Clears the focus.
Example:
webview.ClearFocus
Notes: If the focus is on the webpage, it will be cleared so there is no focus on the window. Useful if you want to workaround a focus bug in the htmlviewer control.

Feedback, Comments & Corrections

WebViewMBS.complete
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 12.2 Yes No No Desktop only
Function: Implemented by WebView to complete an operation in progress or a partially constructed element.
Notes: This method can be interpreted, for example, as a request to attempt expansion of a partial word, such as for expanding a glossary shortcut, or to close a graphics item being drawn.

Feedback, Comments & Corrections

WebViewMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 7.7 Yes No No Desktop only
Function: Creates a new box view with size 100/100 and position 0/0
Example:
dim x as new WebViewMBS
Notes: On success the handle property is not zero.

See also:

Feedback, Comments & Corrections

WebViewMBS.Constructor(Handle as Integer)
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 10.3 Yes No No Desktop only
Function: Creates an object based on the given WebView handle.
Example:
dim t as new WebViewMBS(0, 0, 100, 100)
dim v as new WebViewMBS(t.handle)

MsgBox str(v.Bounds.Width)+" x "+str(v.Bounds.Height)
Notes: The handle is casted to a WebView and the plugin retains this handle.

See also:

Feedback, Comments & Corrections

WebViewMBS.Constructor(left as Double, top as Double, width as Double, height as Double)
Type Topic Plugin Version macOS Windows Linux Targets
method HTMLViewer Mac MBS MacControls Plugin 8.4 Yes No No Desktop only
Function: Creates a new button with the given size and position.
Example:
dim w as new WebViewMBS(0,0,800,600)

w.LoadHTMLString "Hello World",""

// and later

dim n as NSImageMBS = w.RenderImage
Backdrop=n.CopyPicture
Notes: On success the handle property is not zero.

See also:

Feedback, Comments & Corrections

Next items

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

The biggest plugin in space...




Links
MBS FileMaker tutorial videos