Giuliano Colla wrote:
> To discover that if your timer event doesn't change something visual,
> the smart thing decides that there's nothing important to do, and stays
> Idle, so that the OnIdle handler is never called. My kludge has been to
> have the Timer update a Label in a hidden corner of the screen, with a
> sequence of - \ | / - . This wakes up the main thread, which then goes
> Idle, triggers the OnIdle event, and the queue can be processed. You may
> see that this is far from satisfactory.
Not sure what you mean? OnTimer does trigger OnIdle even if there is no
visual update. And even if it wouldn't, you could trivially trigger the
OnIdle inside the OnTimer handler yourself.
> Up to now I've not yet tested Lazarus with a real demanding threaded
> app, but from what I've read about the OnIdle events from Felipe and
> others, I'm afraid that the result won't be much different.
I think it is. Try it.
Thanks!
--
Al
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives