Solved

Calling defualt web browser

Posted on 2000-04-17
9
246 Views
Last Modified: 2010-04-04
I need to know how to call the defualt web browser to a spacific page.  Any additional control I can have over the browser if possible example: window position, size toolbars, menus, ect.

Instructions for building a browser into my app would be better. (will increase point value for this)
example: In Visual Basic you can insert an Internet Exploerer component into your application.
0
Comment
Question by:fibdev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 3

Expert Comment

by:Stefaan
ID: 2722771
Hi,

A simple solution is to call the ShellExecute function.  If you would like to open the default browser and go to www.experts-exchange.com the code would look like :

ShellExecute(ValidParentForm (Self).Handle,'Open', PChar('http://www.experts-exchange.com'), nil, nil, SW_SHOWNORMAL);

I have to pass for the further options, but maybe some other expert can give you more info on that.
0
 
LVL 1

Expert Comment

by:tomer_engel
ID: 2722811
hey
what stefann suggested should do the trick-->open your default browser,,if you need to know the location of the going to be opened browser--you should check inside the registry:(in case the browser is Internet explorer)-else you should find the key of the browser)

my_computer\HKEY_USERS\Default\Software\Microsoft\Internet Explorer\Main

(open this mark with the regedit)  you'll find all the keys you want
1)"Start Page" 2)"Full Screen" ....

...\Internet Explorer\Explorer Bars -the Interfaces for the bars are located there

if you're looking for a browser demo  ,the delphi is shipped with one--if you don't have it i can mail you,,(just add your mail box).          

and there's not a component for a browser,,but alot of internet componets are available in the delphi suite.

Bye for now      
0
 
LVL 3

Author Comment

by:fibdev
ID: 2722973
expert@fibdev.com

What version of delphi comes with the browser demo?  I use Delphi 5 Standard edition.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 3

Author Comment

by:fibdev
ID: 2722985
Stefaan,

I get an undeclaired Identifier error message.

Please bare with me, Delphi is new to me.
0
 
LVL 3

Accepted Solution

by:
Stefaan earned 50 total points
ID: 2723042
Hi,

You need to add the ShellAPI unit to your uses clause.
0
 
LVL 1

Expert Comment

by:wmckie
ID: 2723131
To find out more about building web browser into your app I'd recommend Per Lindso Larsen's site:

http://www.euromind.com/iedelphi/

There's an excellent component (TEmbeddesWB) and lots of useful tips and examples.

Walter McKie
0
 
LVL 3

Expert Comment

by:Mathias
ID: 2723137
I found a file, located at

http://www.bsn.ch/avonwyss/programming/files/Delphi/QuickHTML.zip

This is a simple text browser for your application, including full source code.
Features: fonts, formats, links...
0
 
LVL 3

Author Comment

by:fibdev
ID: 2723204
Thank you everyone
0
 
LVL 1

Expert Comment

by:msedi
ID: 2723408
Hello,

the problem is, I don't know whether you want to pay for the HTML component or not. I you want to pay look at www.pbear.com, they have an HTML component (Very good). Otherwise take the TWebBrowser component from Delphi 5.

Good luck
Martin
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month9 days, 1 hour left to enroll

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question