Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Hyperlink in Web Browser and ActiveXControl
Date: Sat, 25 Aug 2007 19:57:27 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 23
Message-ID: <faq1j7$pj0$1@fred.mathworks.com>
References: <famka8$5k7$1@fred.mathworks.com> <famovi$l5o$1@fred.mathworks.com> <famppt$4q8$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1188071847 26208 172.30.248.37 (25 Aug 2007 19:57:27 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 25 Aug 2007 19:57:27 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:425587



"Mifano " <nchminh@gmail.com> wrote in message
<famppt$4q8$1@fred.mathworks.com>...
> <snip>Is there some way to display a web page by
> using web() on GUI? 

Not easily: web() opens a separate browser window which you
cannot embed in a GUI. However, you can use the following
undocumented hack to do this:

url = 'www.cnn.com';
browser = com.mathworks.mlwidgets.html.HTMLBrowserPanel(url);
pos = [10,10,400,300];
javacomponent(browser,pos,gcf);

You can add toolbar etc. by activating methods on the
browser object as follows (type "methodsview(browser)" for
the full list):

browser.addToolbar;

Yair Altman
http://ymasoftware.com