WebBrowserControl

From wiki.visual-prolog.com

Revision as of 11:07, 4 March 2016 by Thomas Linder Puls (talk | contribs) (category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.