Article View: borland.public.cppbuilder.nativeapi
Article #14166Re: How to Trigger the Main Program from a Timer Procedure?
From: Phuoc Can HUA
Date: Tue, 02 Sep 2003 22:49
Date: Tue, 02 Sep 2003 22:49
31 lines
2292 bytes
2292 bytes
On Tue, 2 Sep 2003 13:35:04 -0700, Remy Lebeau (TeamB) <gambit47@yahoo.com> wrote: > If all he wants to do is trigger a specific event handler, then just call > it > directly, as event handlers are class methods like any other: > > Button1Click(NULL); > or > Button1Click(Button1); If I understand correctly this option is to call the method directly (what I'm doing), i.e. the timer procedure (caller) has to wait until the method finish, in my case, to load a file. > If he wants to trigger the OnClick of a particular button without calling > the OnClick handler directly, then he can call the button's Click() > method > instead: > > Button1->Click(); This will trigger an event only? i.e. the timer procedure will go on before main starts to load the file? That's what I want. Thank you for all your help Phuoc Can HUA -- _/\__/\__/\__/\__/\__/\_ www.huaonline.com My Homepage is my Castle
Technical Details
Message-ID:
<opruv9otucbq7az6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!in.100proofnews.com!in.100proofnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<oprus769kobq7az6@newsgroups.borland.com> <3f53a731$1@newsgroups.borland.com> <i7c7lv4b1hb6f6k5upe6qsv718q7qi1jth@4ax.com> <opruue6dumbq7az6@newsgroups.borland.com> <jvf8lv4n3r77fendn3jhcher6ppblrhsk3@4ax.com> <3f5443bb$1@newsgroups.borland.com> <26n8lv07s0tvfprnifpa1g0taki56lojoo@4ax.com> <3f54cb7f@newsgroups.borland.com> <8op9lvgh1nut5j7onf31mlv7d901j164fg@4ax.com> <3f54fee6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e4cd861378e7d24
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-02 15:55:38 PST
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to Trigger the Main Program from a Timer Procedure?
References: <oprus769kobq7az6@newsgroups.borland.com> <3f53a731$1@newsgroups.borland.com> <i7c7lv4b1hb6f6k5upe6qsv718q7qi1jth@4ax.com> <opruue6dumbq7az6@newsgroups.borland.com> <jvf8lv4n3r77fendn3jhcher6ppblrhsk3@4ax.com> <3f5443bb$1@newsgroups.borland.com> <26n8lv07s0tvfprnifpa1g0taki56lojoo@4ax.com> <3f54cb7f@newsgroups.borland.com> <8op9lvgh1nut5j7onf31mlv7d901j164fg@4ax.com> <3f54fee6$1@newsgroups.borland.com>
Message-ID: <opruv9otucbq7az6@newsgroups.borland.com>
Content-Type: text/plain; charset=iso-8859-15; format=flowed
From: Phuoc Can HUA <home}a+t{huaonline.com>
MIME-Version: 1.0
Date: Wed, 03 Sep 2003 08:49:31 +1000
User-Agent: Opera7.10/Win32 M2 build 2840
NNTP-Posting-Host: 203.194.21.162
X-Trace: newsgroups.borland.com 1062543287 203.194.21.162 (2 Sep 2003 15:54:47 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!in.100proofnews.com!in.100proofnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail