blob: 797bc0c630f4431a76397bf00562a0d095e46981 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2013. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../../../book.css" charset="ISO-8859-1" type="text/css">
<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>
</body>
</html>