Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Hyper Text Link

Posted on 2000-03-21
7
Medium Priority
?
195 Views
Last Modified: 2010-04-04
How can I run the defualt internet browser and load a URL - so I can make a Hyperlink component.  I looked in the registry quikely but did not find an entry or anything.

P.S I don't want sombody elses component - I want to make my own.
0
Comment
Question by:bogieman_
7 Comments
 
LVL 3

Accepted Solution

by:
ckaneta earned 400 total points
ID: 2640744
add ShellAPI in uses clause

then

ShellExecute(0, Nil, PChar('www.whatever.com'), Nil, Nil, SW_NORMAL);
0
 
LVL 1

Expert Comment

by:AttarSoftware
ID: 2640884
Ckaneta is right, but

ShellExecute(0, Nil, PChar('http://www.whatever.com'), Nil, Nil, SW_NORMAL);

is better...

Tim.

(ckaneta, shouldn't that have been an answer, instead of a comment?)
0
 
LVL 3

Expert Comment

by:ckaneta
ID: 2640974
probably, but one can always take a comment as an answer, this still lets anyone else make suggestions
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 2

Expert Comment

by:kotik
ID: 2641208
Hi!
Btw, you can use ShellExecute not only for a HyperLink, but also for AnyLink you want.
F.e.:

ShellExecute(0, Nil, 'mailto:some@body.com', Nil, Nil, SW_NORMAL);

or even like this:

ShellExecute(0, 'open', 'c:\app.exe', Nil, Nil, SW_NORMAL);

You don't need to convert arguments to PChar.
And don't forget to add ShellAPI to your uses clause.

Regards,
Kot.
0
 
LVL 1

Expert Comment

by:MoonCalf
ID: 2644008
There's always the THyperLink component on JayMol's page....

   http://SecretDelphi.cjb.net

0
 
LVL 1

Author Comment

by:bogieman_
ID: 2644530
Cheers - just what I wanted - also thanks to whoever said about "mailto:...", I was just about to ask about that
0
 
LVL 1

Author Comment

by:bogieman_
ID: 2644535
Also , MoonCalf - I said in the frickin question that I didn't want any components!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Loops Section Overview
Suggested Courses

916 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