> WAITNEXTEVENT is almost identical to GETNEXTEVENT, except that it > does not return a constant stream of null events. With WAITNEXTEVENT, > you establish a time frame (usually 1-3 ticks) and the toolbox will > allow background apps to process there stuff instead of sending > useless null events to your application. > > This delay does not affect the operation of your application. Regular > events come thru just as fast as the machine allows. Window updates, Hmmm. I'm not so sure about that. The delay doesn't affect operation of your application provided you avoid too-frequent HANDLEEVENTS. Each HANDLEVENTS takes much longer with WAITNEXTEVENT than with GETNEXTEVENT. So in long loops you should avoid calling HANDLEVENTS too frequently (if you call it every iteration in a loop of 10000 iterations, your loop will take ages); or if your actions are prompted by "null events", you might need to do several of them in the one "cycle". -- Robin ==================================================== Genesearch Pty Ltd E-mail: robinc@... WWW: http://www.genesearch.com.au ====================================================