Article View: borland.public.cppbuilder.nativeapi
Article #5759Action trigger left mouseclick from within the program
From: news.pandora.be
Date: Mon, 11 Jul 2005 19:14
Date: Mon, 11 Jul 2005 19:14
18 lines
1677 bytes
1677 bytes
Hi,Can anyone translate this to builder?I've searched the web and didn't
find it :(
Thanks
procedure TControl.Click;
begin
{ Call OnClick if assigned and not equal to associated action's OnExecute.
If associated action's OnExecute assigned then call it, otherwise, call
OnClick. }
if Assigned(FOnClick) and (Action <> nil) and (@FOnClick <>
@Action.OnExecute) then
FOnClick(Self)
else if not (csDesigning in ComponentState) and (ActionLink <> nil) then
ActionLink.Execute(Self)
else if Assigned(FOnClick) then
FOnClick(Self);
end;
Technical Details
Message-ID:
<dyzAe.142464$Ls5.7581916@phobos.telenet-ops.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed3.newsreader.com!newsreader.com!feed7.newsreader.com!newsreader.com!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,818959608590f1fa,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed3.newsreader.com!newsreader.com!feed7.newsreader.com!newsreader.com!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail From: "news.pandora.be" <dannyvdh@pandora.be> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Action trigger left mouseclick from within the program Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Message-ID: <dyzAe.142464$Ls5.7581916@phobos.telenet-ops.be> Date: Mon, 11 Jul 2005 19:14:17 GMT NNTP-Posting-Host: 213.118.11.27 X-Complaints-To: abuse@telenet.be X-Trace: phobos.telenet-ops.be 1121109257 213.118.11.27 (Mon, 11 Jul 2005 21:14:17 MEST) NNTP-Posting-Date: Mon, 11 Jul 2005 21:14:17 MEST Organization: Telenet Internet