Solved

Calling defualt web browser

Posted on 2000-04-17
9
232 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
 
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now