Difference between revisions of "WebBrowserControl"

From wiki.visual-prolog.com

m (Category)
(category)
 
Line 27: Line 27:
 
The <vp>webBrowser</vp> example (IDE: '''Help | Install Examples...''') shows how some ways to use the <vp>webBrowserControl</vp>; it also shows how to automate a standalone Internet Explorer.
 
The <vp>webBrowser</vp> example (IDE: '''Help | Install Examples...''') shows how some ways to use the <vp>webBrowserControl</vp>; it also shows how to automate a standalone Internet Explorer.
  
[[Category:Tutorials]]
 
 
[[Category:Controls]]
 
[[Category:Controls]]

Latest revision as of 11:07, 4 March 2016

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.