Solved

Hyper Text Link

Posted on 2000-03-21
7
182 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 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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 Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

705 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

18 Experts available now in Live!

Get 1:1 Help Now