Solved

Calling defualt web browser

Posted on 2000-04-17
9
237 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
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

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…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 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