Solved

Hyper Text Link

Posted on 2000-03-21
7
191 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_
[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
7 Comments
 
LVL 3

Accepted Solution

by:
ckaneta earned 100 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
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 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

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month4 days, 5 hours left to enroll

630 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