Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

HTMLViewer.ChromiumBrowserMBS as ChromiumBrowserMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 14.2 No Yes No No No
Function: Queries browser object for htmlviewer.
Example:
dim b as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
MsgBox b.MainFrame.URL
Notes:
Works only on Windows if Webkit is chosen as renderer.
Returns nil on any error.

Please call all chromium functions only on main thread.
Do not call in open event of HTMLViewer as browser control is not yet initialized there.

Some examples which use this method:

Feedback, Comments & Corrections

HTMLViewer.IELoadHTMLMBS(HTMLText as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 15.1 No Yes No No No
Function: Loads the HTML text into the htmlviewer.
Example:
// in window open event, load blank page
HTMLViewer1.LoadURL "about:blank"

// later somewhere in app load HTML:
HTMLViewer1.IELoadHTMLMBS "<html><body>Hello World</body></html>"
Notes:
Does not use a temp file like Xojo's built in method.
Returns true on success.
On Windows you may need to reset webviewer before or load "about:blank" to initialize the webviewer by Xojo (or Real Studio).

Some examples which use this method:

Feedback, Comments & Corrections

HTMLViewer.IEStopMBS as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Win MBS Win Plugin 12.4 No Yes No No No
Function: Stops loading.
Notes: Returns true on success and false on failure.

Some examples which use this method:

Feedback, Comments & Corrections

HTMLViewer.IEZoomMBS(factor as Integer) 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: Zooms the web content.
Notes:
Factor can be 50 for 50%.
Returns true on success.

Some examples which use this method:

Feedback, Comments & Corrections

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




Links
MBS Xojo Chart Plugins