Article View: borland.public.cppbuilder.internet.web
Article #667Re: link to url
From: Remy Lebeau (TeamB)
Date: Sat, 19 Aug 2006 19:16
Date: Sat, 19 Aug 2006 19:16
28 lines
1936 bytes
1936 bytes
"Michel Leunen" <nospam@noreply.please> wrote in message news:44e6d444@newsgroups.borland.com... > Should be > ShellExecute(NULL,"open",Label1->Caption.c_str(),NULL,NULL,SW_SHOW); To help ShelExecute() know exactly what to execute, you should include the "http://" portion in the URL as well. > You can also put the font color of your label to blue and change the > cursor to a hand cursor when the mouse is over the label. Like this: You don't need to use events for that. Simply set the Cursor property at design-time, and the mouse will automatically change at runtime every time it is over the Label. What you could do with the events, however is change the font color of the Label to another color, such as red, to provide a hover effect. > void __fastcall TForm1::Label1MouseUp(TObject *Sender, TMouseButton > Button, > TShiftState Shift, int X, int Y) Use the OnClick event instead. Gambit
Technical Details
Message-ID:
<44e767a9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44e628d9@newsgroups.borland.com> <44e6d217@newsgroups.borland.com> <44e6d444@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,7e6e0b0f9a475a4e X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <44e628d9@newsgroups.borland.com> <44e6d217@newsgroups.borland.com> <44e6d444@newsgroups.borland.com> Subject: Re: link to url Date: Sat, 19 Aug 2006 12:16:00 -0700 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 24.50.76.112 Message-ID: <44e767a9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1156016041 24.50.76.112 (19 Aug 2006 12:34:01 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail