Where is the documentation for TWebBrowserEx in Delphi XE?
I just discovered TWebBrowserEx in the Delphi XE source. When I google it, I get zero hits! Anyone have insight on where 开发者_运维知识库this component came from, and on what the purpose is?
You can find the source in $(BDS)\Source\Internet\WebBrowserEx.pas. If you open that file, there is a large section of comments at the top giving links to the documentation for the interfaces inside.
The component is usually called TWebBrowser – no doubt this is a variant. Perhaps they renamed it to avoid clashes with existing TWebBrowser components.
TWebBrowser is an OCX wrapper around IWebBrowser2. It's very hard to imagine that TWebBrowserEx is implemented in any other way.
The documentation is on MSDN but you'll get better hits searching for TWebBrowser. The best source of information is Brian Cryer's site.
Note that once you get into programming the DOM (through the Document
property) it becomes highly dynamic and so what documentation there is takes quite a bit of getting used to if you are used to more static class interfaces.
UPDATE
According to @jachguate, TWebBrowserEx derives from TWebBrowser and adds a bunch of extra interfaces. I don't believe this changes anything substantial in the answer. The documentation sources are still going to be as listed above.
The one that is installed into the IDE for use at designtime is called TWebBrowser, and it is implemented in SHDocVw.pas.
I thought there is no such class name as TWebBrowserEx in any file in Delphi XE VCL source folder. What file are you looking at and where is it located?
You might be interested in the TEmbeddedWB component from www.bsalsa.com. I found that it works a lot better for me than the standard TWebBrowser.
Update: So it does exist. Whoa. It seems to be an inner class defined inside this unit, used as a field inside TCustomWebBrowserComponent, which seems to be a base class you would extend.
精彩评论