For Programmers: Free Programming Magazines  


Home > Archive > Delphi > April 2006 > Implementing a TTimer in a Delphi Object.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Implementing a TTimer in a Delphi Object.
Freeway

2006-02-26, 2:18 pm

This should be simple, but I simply cannot find reasonable examples or instructions.

I am building an object, and I want it to have a timer operating within it within it. I am using TTimer -- but normally that is put on a form, and therefor quite a lot of implementaion issues are hidden by Delphi.

I need a code example for implementing a timer in an object, and of specifying the timer event handler. The help system simply does not seem to provide an example of this obvious implementation, and the information given is quite confusing to me.

Of course, I could just hide one on a form somewhere, but that is missing the point. Has anyone got a brutally simple code fragment that they can share?

Thanks.
mbommerez

2006-04-02, 4:03 am

quote:
Originally posted by Freeway
This should be simple, but I simply cannot find reasonable examples or instructions.

I am building an object, and I want it to have a timer operating within it within it.



Maybe this can help

http://delphi.about.com/cs/adptips2...bltip0104_2.htm
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com