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

Next items

ChromiumBrowserMBS.CanGoBack as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Returns true if the browser can navigate backwards.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
MsgBox str(m.CanGoBack)

Feedback, Comments & Corrections

ChromiumBrowserMBS.CanGoForward as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Returns true if the browser can navigate forwards.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
MsgBox str(m.CanGoForward)

Feedback, Comments & Corrections

ChromiumBrowserMBS.ClearFocus
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 15.2 No Yes No No No
Function: Clears focus.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.ClearFocus

Feedback, Comments & Corrections

ChromiumBrowserMBS.ClearHistory
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Clear the back/forward browsing history.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.ClearHistory
Notes: Only supported for Chromium 2.x, but not 3.x.

Feedback, Comments & Corrections

ChromiumBrowserMBS.CloseDevTools
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Explicitly close the developer tools window if one exists for this browser instance.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.CloseDevTools
Notes: Only supported for Chromium 2.x, but not 3.x.

Feedback, Comments & Corrections

ChromiumBrowserMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: The private constructor.

Feedback, Comments & Corrections

ChromiumBrowserMBS.Destructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: The destructor.

Feedback, Comments & Corrections

ChromiumBrowserMBS.ExecuteJavaScript(jsCode as string, scriptUrl as string = "", startLine as Integer = 0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.4 No Yes No No No
Function: Execute a string of JavaScript code in this frame.
Example:
// go back to last page via javascript
dim b as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
b.ExecuteJavaScript "window.history.back();"
Notes: The scriptUrl parameter is the URL where the script in question can be found, if any. The renderer may request this URL to show the developer the source of the error. The startLine parameter is the base line number to use for error reporting.

Feedback, Comments & Corrections

ChromiumBrowserMBS.Find(identifier as Integer, searchText as string, forward as boolean, MatchCase as boolean, FindNext as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Search for searchText.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.Find 1, "Hello", true, false, false

// later
m.Find 1, "Hello", true, false, true
Notes: Identifier can be used to have multiple searches running simultaniously. forward indicates whether to search forward or backward within the page. matchCase indicates whether the search should be case-sensitive. findNext indicates whether this is the first request or a follow-up.

Feedback, Comments & Corrections

ChromiumBrowserMBS.Frame(ID as Int64) as ChromiumFrameMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 17.2 No Yes No No No
Function: Returns the frame with the specified identifier, or nil if not found.
Example:
dim b as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
if b<>Nil then
dim idn() as Int64= b.FrameIdentifiers
dim ids() as string
for each n as Int64 in idn
dim f as ChromiumFrameMBS = b.Frame(n)

ids.Append str(n)+" "+f.Name
next
MsgBox "FrameIdentifiers: "+EndOfLine+EndOfLine+Join(ids, EndOfLine)
end if

See also:

Feedback, Comments & Corrections

ChromiumBrowserMBS.Frame(name as string) as ChromiumFrameMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Returns the frame with the specified name, or nil if not found.
Example:
dim b as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
dim f as ChromiumFrameMBS = b.Frame("TopFrame")
dim s as string = f.Name
MsgBox s

See also:

Feedback, Comments & Corrections

ChromiumBrowserMBS.FrameIdentifiers as Int64()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 17.2 No Yes No No No
Function: Queries list of frame identifiers.
Example:
dim b as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
if b<>Nil then
dim idn() as Int64= b.FrameIdentifiers
dim ids() as string
for each n as Int64 in idn
dim f as ChromiumFrameMBS = b.Frame(n)

ids.Append str(n)+" "+f.Name
next
MsgBox "FrameIdentifiers: "+EndOfLine+EndOfLine+Join(ids, EndOfLine)
end if

Feedback, Comments & Corrections

ChromiumBrowserMBS.FrameNames as String()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 17.2 No Yes No No No
Function: Queries list of frame names.
Example:
dim b as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
if b<>Nil then
dim Names() as string = b.FrameNames
MsgBox "FrameNames: "+EndOfLine+EndOfLine+Join(Names, EndOfLine)
end if
Notes: Often frames are unnamed, so named is generic.

Feedback, Comments & Corrections

ChromiumBrowserMBS.GoBack
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Navigate backwards.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.GoBack

Feedback, Comments & Corrections

ChromiumBrowserMBS.GoForward
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Navigate forwards.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.GoForward

Feedback, Comments & Corrections

ChromiumBrowserMBS.HasDocument as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Returns true if a document has been loaded in the browser.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
MsgBox str(m.HasDocument)

Feedback, Comments & Corrections

ChromiumBrowserMBS.HidePopup
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Hide the currently visible popup, if any.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.HidePopup
Notes: Only supported for Chromium 2.x, but not 3.x.

Feedback, Comments & Corrections

ChromiumBrowserMBS.Image(width as Integer, height as Integer) as Picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Get the raw image data contained in the specified element without performing validation.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
dim p as picture = m.Image(600, 800)
window1.backdrop = p
Notes:
The specified width and height dimensions must match the current element size.

Only supported for Chromium 2.x, but not 3.x.

Feedback, Comments & Corrections

ChromiumBrowserMBS.invalidate(x as Integer, y as Integer, width as Integer, height as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Invalidate the rectangle region of the view.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.invalidate 0, 0, 600, 800
Notes: This function is only used when window rendering is disabled and will result in a call to HandlePaint().

Feedback, Comments & Corrections

ChromiumBrowserMBS.IsLoading as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 17.1 No Yes No No No
Function: Checks loading state.
Notes:
Returns true while page is loading.
Only available for Xojo 2017 and newer.

Feedback, Comments & Corrections

ChromiumBrowserMBS.IsPopup as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Returns true if the window is a popup window.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
MsgBox str(m.IsPopup)

Feedback, Comments & Corrections

ChromiumBrowserMBS.Release
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 15.1 No Yes No No No
Function: Releases the browser object.
Notes:
You don't need this normally.
This method can be used for working around Feedback case 33565.

Feedback, Comments & Corrections

ChromiumBrowserMBS.Reload
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Reload the current page.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.Reload

Feedback, Comments & Corrections

ChromiumBrowserMBS.ReloadIgnoreCache
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Reload the current page ignoring any cached data.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.ReloadIgnoreCache

Feedback, Comments & Corrections

ChromiumBrowserMBS.Retain
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 15.1 No Yes No No No
Function: Retains the browser object.
Notes: You don't need this normally.

Feedback, Comments & Corrections

ChromiumBrowserMBS.SetFocus(enableFocus as boolean = true)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Set focus for the browser window.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.SetFocus
Notes: If enable is true focus will be set to the window. Otherwise, focus will be removed.

Feedback, Comments & Corrections

ChromiumBrowserMBS.setSize(width as Integer, height as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Set the size of the specified element.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.setSize 600, 800
Notes: Only supported for Chromium 2.x, but not 3.x.

Feedback, Comments & Corrections

ChromiumBrowserMBS.ShowDevTools
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Open developer tools in its own window.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.ShowDevTools
Notes: Only supported for Chromium 2.x, but not 3.x.

Feedback, Comments & Corrections

ChromiumBrowserMBS.StopFinding(clearSelection as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Cancel all searches that are currently going on.

Feedback, Comments & Corrections

Next items

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




Links
MBS Xojo Plugins