Can't you use AddActionNotificationReceiver and add the ActionNotificationReceiver interface to your class?
On 3/17/07, William Squires <[EMAIL PROTECTED]> wrote: > > Oops, I should have given you the 'why' of it. > The reason you can't simply put a Timer directly into your class > is that - unlike in a window - it doesn't know who to send its Action > () event to. By making a Timer subclass (which has a reference to its > parent, or owner, class), that subclass can now do something about > the Action() event the superclass throws; that is, your subclass has > the 'smarts' to handle the Action() event that occurs when the timer > fires, and lets its parent object know about it via the callback. > HTH! > > > On Mar 17, 2007, at 10:44 PM, William Squires wrote: > > > No, you need to make a Timer subclass. This subclass should have a > > property of type <reference-to-the-class-which-needs-the-timer>. > > along with a setter method for it. > > > > > > On Mar 17, 2007, at 8:50 PM, Eric Richards wrote: > > > >> Hi - > >> > >> I'm wanting to know can you use a timer > >> in a class like you would use a timer normaly ? > >> > >> That is, if I do this > >> property - > >> MyTimer as Timer (private) > >> > >> Can I use MyTimer in the class its self ? > >> If so, how ? > >> > >> I could be wrong, but I have a feeling that it doesn't > >> work that way. > >> > >> Thanks > >> > >> Eric > >> > >> Rb tripple 5 > > _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
