On Jun 13, 2006, at 11:56 PM, FreeFL wrote:

|    13/06/06 ~ 18:13 -0500 :
|    Keith Bennett,
|         " Re: Pause ver. 2.0 "


For your timer situation:
In your project, create a new class, name it MyTimer. Then, set its super as
"Timer".

Now you can instantiate MyTimer anywhere in code, just like any other
regular object. Be sure to save a reference to it, as I'm not sure the timer would still fire if it's been orphaned: the timer would probably be deleted
instead.

Hello!

When creating timers this way, how do you "write" the Run code ?

The simplest is to actually write the code right in the new subclass

You could also have the timer simply be a timer in code that can be set up to call some other method in your code when the timer goes off.
You could do this with an interface & the timer

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to