TTimer makes clicking close button does nothing lazarus / 7-LCL ---------------------------------------------------------------------- Leledumbo · 2007-10-30 12:02 I have a game that for speed stability reason, uses TTimer as the drawing function. I set the interval to 32 (but it runs like 60 fps which should be Round(1000 div 60) = 17). If the WindowState is normal, everything's fine. But if it's maximized (which means eat more resources), the window won't close immediately after clicking close button (that is, the 'X' on the right-top). I need to restore it to its original size before clicking close to close the window. But strangely, clicking either minimize/maximize gives immediate result. Shouldn't the 3 buttons act the same (through the same message loop)? ---------------------------------------------------------------------- antonio · 2007-10-30 14:08 Try to disable the timer on CloseQuery event. ---------------------------------------------------------------------- Leledumbo · 2007-10-31 05:17 Thanx. Now it works.