 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Stew Guest
|
Posted: Thu Jul 24, 2003 9:41 pm Post subject: Re: Make a TTimer "execute" |
|
|
Simply call the TTimer OnTimer event handler,
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
ShowMessage("Hello");
}
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Timer1Timer(this);
}
Stew
"Jonas Andersson" <x57001 (AT) hotmail (DOT) com> wrote
| Quote: | Say I have a TTimer with a interval set at 3 seconds, and I set this to
Enabled = true with a button.
It will now take 3 seconds before it's code is getting executed, can I
call
a function or something after I set Enabled to true so it will run the
code
immediately and then continue to run it every 3 seconds.
/Jonas
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|