Op 2010-10-19 10:17, Felipe Monteiro de Carvalho het geskryf:
> MyTimer := TTimer.Create(Application);
> MyTimer.OnTimer := myHandler;
>
or even
MyTimer := TTimer.Create(nil);
MyTimer.OnTimer := myHandler;
...later when application terminates...
MyTimer.Free;
Regards,
- Graeme -
--
MyTimer := TTimer.Create(Application);
MyTimer.OnTimer := myHandler;
--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Op 2010-10-18 22:44, Justin Smyth het geskryf:
> Guys
>
> i have an app on win32 that runs a timer when a form is hidden , any
> ideas how i get a timer to work when the form is hidden ?
Timers (TTimer and FPTimer) are not related to forms, so they will run even
without a form instance.
Rega
Guys
i have an app on win32 that runs a timer when a form is hidden , any ideas how
i get a timer to work when the form is hidden ?
Kind Regards
Delphian___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/l