Difference between revisions of "WebBrowserControl"

From wiki.visual-prolog.com

m (release)
m (Category)
Line 28: Line 28:


[[Category:Tutorials]]
[[Category:Tutorials]]
[[Category:GUI]]
[[Category:Controls]]

Revision as of 10:45, 28 October 2013

The webBrowserControl provides comprehensive bindings to Internet Explorer webBrowser control (commercial edition only).

To use the webBrowserControl in a dialog or form:

  • first make sure that the pfc\gui\webBrowserControl package is added to the project, and that the project has been compiled
  • then add the webBrowserControl to the dialog/form as a custom control

The webBrowserControl can show a WEB page by navigating to it:

predicates
    navigate : (string URL).
    navigate : (string URL, browserNavConstants Flags).
    navigate : (string URL, browserNavConstants Flags, string TargetFrameName).
    navigate : (string URL, browserNavConstants Flags, string TargetFrameName, binary PostData).
    navigate : (string URL, browserNavConstants Flags, string TargetFrameName, binary PostData, string Headers).
    % @short Navigates to a resource identified by a URL or to a file identified by a full path.
    % See IWebBrowser2::Navigate in MSDN.
    % @end

Or you can set the contents directly by setting the html property:

properties
    html : string (i).
    % @short Set the HTML contents of the browser directly
    % @end

The webBrowser example (IDE: Help | Install Examples...) shows how some ways to use the webBrowserControl; it also shows how to automate a standalone Internet Explorer.