Page 1 of 1

how to fire event repeatedly

Posted: Wed Jun 06, 2007 18:41
by phoenixy
Hello,

I want to fire event repeatedly when the mouse pointer is on some button.
EventMouseEnters or EventMouseLeaves can help determining the positiong of the mouse pointer..

but I want to do some job during the mouse pointer's on a button.

Is there any good idea?

Posted: Thu Jun 07, 2007 08:19
by scriptkid
What you can do is flag a Boolean between the EventMouseEnters and EventMouseLeaves events, and check this flag in your mainloop. If true, perform your processing. Of course you might put this into a nice helper class or something ;)

HTH.