Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Internet browsing to application 1

Status
Not open for further replies.

ChessPro

Programmer
Feb 20, 2006
14
US
I need to create an active link to a website from my application.
One way I see to accomplish this is to use the TWebBrowser. The component allows for the access to the website, but there is absolutely no navigation interface (Address Bar, Tool Bar etc.), that is usually present in Internet Explorer and other browsers, just the window for the contents of the html page. There is no access to those properties either.
I guess the other way is to use CreateProcess, but I can’t get the Internet Explorer to show the particular page I need on start-up.
 
Code:
uses ShellAPI;

var
  URL : AnsiString;
begin
  URL := '[URL unfurl="true"]http://www.tek-tips.com/';[/URL] 
  ShellExecute(0, nil, PChar(URL), nil, nil, SW_SHOWNORMAL);
end;

The code above will launch the default browser pointed to URL.

HTH.
buho (A)
 
...and there are several Free components that do simular.


Steve: Delphi a feersum engin indeed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top