On Thu, 22 Dec 2011, Graeme Geldenhuys wrote:
On 22 December 2011 10:15, <michael.vancanneyt@w......> wrote:
I think it depends on what you mean with 'OnIdle'.
- An event which occurs once when an application falls Idle.
- An event which is triggered repeatedly when the application is idle.
fpGUI's OnIdle event used to fired only once, when the application
goes idle - but I found it much more useful to have an idle event that
fires repeatedly. Maybe I should make it configurable via the
fpgApplication instance, so the developer can decide how they want it
to work.
Well, the latter will consume CPU cycles, as indicated by others...
It all depends on what the programmer needs.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal