blob: 834035cb29d863c77d59d365aa3995db5de975e0 [file] [log] [blame]
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SWT - OLE Web Browser</title>
</head>
<body>
<h2>SWT example - OLE Web Browser</h2>
<p>
This example shows how to embed an Active X control into an SWT application or an Eclipse view.
<p>
</p>
When the view is opened, it will create an instance of the Windows Internet Explorer
control. The OLE web browser has
<strong>Back</strong> and <strong>Forward</strong> buttons to take you to recently visited pages. The browser also contains
a <strong>Home</strong> button to take you to the web browser's home page, a <strong>Stop</strong> button which stops the
current transfer, a <strong>Search</strong> button which will search for text typed in the <strong>Address</strong> text field, and
a <strong>Refresh</strong> button which re-draws the contents of the currently displayed page. There is also a
<strong>Go</strong> button which, when clicked, will attempt to load the page specified in the <strong>Address</strong> field.
</p>
<h3>Running the example</h3>
<p>
From Eclipse's <strong>Window</strong> menu select <strong>Show View</strong> &gt; <strong>Other</strong>.
In the <strong>Show View</strong> dialog, expand <strong>SWT Examples</strong> and select
the view named <strong>OLE Web Browser (win32)</strong>. A view containing a web browser will appear.
</p>
<p>
This example can also be run using the <a href="../../org.eclipse.swt.examples.launcher/doc-html/swt_launcher_ex.html">Example Launcher</a>.
Select the <strong>OLE Web Browser</strong> item from the <strong>Win32 only</strong> category and click <strong>Run</strong>.
</p>
<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2003. All Rights Reserved." BORDER=0 height=14 width=324></a></p>
</body>
</html>