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: Wed, 29 Aug 2007 08:10:41 +0000 (UTC)
Organization: ALTRAN
Lines: 37
Message-ID: <fb39m1$iki$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-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1188375041 19090 172.30.248.38 (29 Aug 2007 08:10:41 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 29 Aug 2007 08:10:41 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 407380
Xref: news.mathworks.com comp.soft-sys.matlab:426032



"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 for your reply. I followed your instruction and
succeeded to embed Web browser to GUI. 
However, I didn't found any document about the class
com.mathworks.mlwidgets.html.HTMLBrowserPanel. 
The methodsview gives me few information about syntax of the
class's functions. 
Could you tell me where to find these documents? Actually,
I'm looking for the refresh and resize functions of this web
page.  
Thank you very much.