Hello Sean, On Friday, April 11, 2003 3:40 PM, "Sean Healy" <[EMAIL PROTECTED]> wrote: > >I found that the _Timer subroutine was called twice in succession every > >second. What is it I am doing wrong? > > Are you by any chance using Win32::GUI::DoEvents in a loop instead of > Win32::GUI::Dialog? I (and others) have noticed that DoEvents seems to > respond to events twice, i.e., touching a single key puts the same character > twice into a textfield. Since a Timer fires off an event, it would probably > respond to it twice.
Yes, this is true. I use Win32::GUI::DoEvents() in a while loop to work through the events. The Win32::GUI::Timer is to update the contents of a DialogBox which is on top of a window which uses the Win32::GUI::Dialog() method for user interaction. In the while loop I do some printing to hard disc and the DialogBox is to show the progress of this action. I found that I needed to call Win32::GUI::DoEvents in the loop otherwise there is no proper updating of the content of the DialogBox, even that there had been a call to Win32::GUI::Dialog() before (to manage the main window). So for me it seems that I have to use Win32::GUI::DoEvents(). You mean that I can't do anything against the timer getting fired twice, instead of once, every second in this context? Regards, Christian *** Christian Kappler ***