Solved

Calling defualt web browser

Posted on 2000-04-17
9
243 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 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