Article View: borland.public.cppbuilder.internet.web
Article #668Re: link to url
From: Michel Leunen
Date: Sat, 19 Aug 2006 20:19
Date: Sat, 19 Aug 2006 20:19
27 lines
1945 bytes
1945 bytes
Remy Lebeau (TeamB) wrote: > 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. You're right. It's much easier. I forgot about that property. >> void __fastcall TForm1::Label1MouseUp(TObject *Sender, TMouseButton >> Button, >> TShiftState Shift, int X, int Y) > > Use the OnClick event instead. Why? Since a TLabel is not a windowed control, it can't have focus. Therefore, the only way to trigger the OnClick event is using the mouse. In this case, IMO, using the OnMouseUp event is equally good, isn't it? Or am I missing something? Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Technical Details
Message-ID:
<44e7722b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<44e628d9@newsgroups.borland.com> <44e6d217@newsgroups.borland.com> <44e6d444@newsgroups.borland.com> <44e767a9@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 Date: Sat, 19 Aug 2006 22:19:10 +0200 From: Michel Leunen <nospam@noreply.please> Organization: www.leunen.com User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.web Subject: Re: link to url References: <44e628d9@newsgroups.borland.com> <44e6d217@newsgroups.borland.com> <44e6d444@newsgroups.borland.com> <44e767a9@newsgroups.borland.com> In-Reply-To: <44e767a9@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.247.73.152 Message-ID: <44e7722b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1156018731 81.247.73.152 (19 Aug 2006 13:18:51 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail