Archive for July, 2007

像用webbrowser一样 使用 firefox

一个delphi写的例子 , 像用webbrowser一样 使用 firefox:

Using FireFox instead of TWebBrowser in Delphi applications

http://www.paranoia.clara.net/articles/taming_the_lizard_with_delphi.html

摘抄
unit MainForm;
{Main Form unit for Gecko Browser, a demo of embedding Gecko in Delphi 5+ apps}

uses
MOZILLACONTROLLib_TLB;

mzGecko: TMozillaBrowser

mzGecko.Navigate(WideString(HOME_ADDRESS)); {home page}
mzGecko.Navigate(WideString(START_ADDRESS)); {custom start page}

PageFilename := mzGecko.LocationName + '.html';

mzGecko.ExecWB(OLECMDID_SAVEAS, OLECMDEXECOPT_PROMPTUSER {OLECMDEXECOPT_DODEFAULT}, PageFilename);

mzGecko.GoBack;
mzGecko.GoForward

评论

http://www.bsalsa.com/downloads.html
Embedded Web Browser Demo Source Code

Embedded Web Browser is a package of components that demonstrates an easy way to implement IDocHostUIHandler and IDocHostShowUI with TWebbrowser.
It includes all the needed components / procedures you will need to build a web browser or a chat client.
Including Highlight Html, XML And Full chat Client support.
The package contains a demo that contain most of the procedures implementation.
The EmbeddedWB is based on code by Linds Larsen. Read the credits file to know "Who did what".
A partial list of the components in the package:
EmbeddedWB. ExportFavorites.
Import Favorites. TextIEParser.
FavoritesMenu. FavoritesListView.
FavoritesTree. HistoryMenu.
HistoryListView. IEAddress ComboBox.
IECache. IEDownload.
IETools IEUtils.
IEGuid . BrowseForFolder.
IETravelLog. Intshcut.
LinksBar. RichEditBrowser.
SecurityManager. SendMail.
UrlHistory. HtmlHighLighter.
XmlHighLighter. WebUpdater.
XmlScanner. EasyXmlScanner.

TWebUpdater.

The Web Updater enables automatic updates and hot fixes over the web using a single line of code
The web updater negotiate with the remote web site without the need of a web browser.
Its fully support NT service (NT4.0/2000/XP/2003) and service-like (95/98/Me).
Its pure Borland Delphi code and support D5 to D2006.
As a programmer you have full control over the user interface and the user update messages.
The Web Updater has a full logging procedure that collects all the update procedure including success and errors.
It also has a build in Error report that can be auto mailed back to the programmer.
The Web updater uses a XML remote file and an "XML File Creator" application is included so there is no need to spend time writing manually the xml file.

评论


0.014 sec