Path: news.mathworks.com!not-for-mail
From: "Mifano " <nchminh@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Hyperlink in Web Browser and ActiveXControl
Date: Mon, 27 Aug 2007 07:04:32 +0000 (UTC)
Organization: ALTRAN
Lines: 27
Message-ID: <fatt20$cuj$1@fred.mathworks.com>
References: <famka8$5k7$1@fred.mathworks.com> <famovi$l5o$1@fred.mathworks.com> <famppt$4q8$1@fred.mathworks.com> <faq1j7$pj0$1@fred.mathworks.com>
Reply-To: "Mifano " <nchminh@gmail.com>
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 1188198272 13267 172.30.248.37 (27 Aug 2007 07:04:32 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 27 Aug 2007 07:04:32 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 407380
Xref: news.mathworks.com comp.soft-sys.matlab:425675



"Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote in message
<faq1j7$pj0$1@fred.mathworks.com>...
> "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
> 

Thank you, that's really helpful.