[fpc-pascal] Timer in X11

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Thu Dec 22 09:52:01 CET 2011



On Thu, 22 Dec 2011, Graeme Geldenhuys wrote:

> On 22 December 2011 10:15,  <michael.vancanneyt at 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.



More information about the fpc-pascal mailing list