Solved

Hyper Text Link

Posted on 2000-03-21
7
183 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

20 Experts available now in Live!

Get 1:1 Help Now