Difference between revisions of "WebBrowserControl"

From wiki.visual-prolog.com

(Initial)
 
m (release)
Line 1: Line 1:
{{Preliminary Documentation}}
The <vp>webBrowserControl</vp> provides comprehensive bindings to [http://msdn.microsoft.com/en-us/library/aa752040(VS.85).aspx Internet Explorer webBrowser control] (commercial edition only).
The <vp>webBrowserControl</vp> provides comprehensive bindings to [http://msdn.microsoft.com/en-us/library/aa752040(VS.85).aspx Internet Explorer webBrowser control] (commercial edition only).



Revision as of 20:47, 24 November 2012

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.