[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XForms] How to use an idle_callback to run an animation? CODE APPEN
From: |
Werner Heisch |
Subject: |
Re: [XForms] How to use an idle_callback to run an animation? CODE APPENDED |
Date: |
Wed, 21 Dec 2016 23:34:04 +0100 |
Am Tue, 20 Dec 2016 15:35:43 -0800
schrieb Peter Rowat <address@hidden>:
Hi Peter,
I'm using the "idle_callback" in different programs, most of it long
runners. (SCADA programs).
I call the "idle_callback" in the main program, behind initialisations
fl_initialize (..)
and before showing the first form.
fl_show_form( .. )
Works fine.
I assume, it has to be below of all that stuff which is processed by
fl_do_forms().
Regards
Werner
> Dear Jens,
>
> I have tried to follow the instructions for using an idle_callback
> but so far have been unable to make the program work.
>
> The callback is registered in my “create_form_canvasform”, and the
> callback is declared, as per p.47 in the Library manual. As I
> understand it, the callback should be getting called continually when
> otherwise there’s nothing happening. But it is never called. My test
> idle_callback merely prints a number, no graphics at all.
>
> I can’t see anything I’m doing wrong.
>
> My program is derived from the demo “canvas.c”, and I’ll append a
> file with the relevant parts of the program. The main addition to
> “canvas.c” was to draw the path of the mouse in the canvas.
>
> I apologize for asking this sort of question so close to Christmas,
> but it’s been a major aim for me to have this (and much more) running
> by now. Any suggestions greatly appreciated. I’ll proceed to look
> at the xforms source-code.
>
> Peter