I have found the reason the onidle does not work is because when the idle test
is needed, the mainform is hidden (in the system tray). When the mainform is
hidden, Onidle does not work - it never gets activated until the mouse is over
the tray icon OR the mainform is visible. You can test this for yourself by
making a mainform with onidle, then hide the mainform, then place a break in the
onidle event.
Any ideas please to get an onidle event to work in the tray? (not setting DONE
to false, as this is system resource heavy)
Tks,
Al+
AG> Next question! How do I determine when the hard disk is not being used. For
AG> example, when there is a change to determined folders, I do not want the monitor
AG> to activate until it has finished working. Tried to use onidle, but the
AG> application.ProcessMessages; or any loop make it busy!
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/