> Hello,
>
> Could someone advise how to write the timers for animations in j gtk? For
> example such as for a label with its value being updated at an interval or a
> gtk clock with cairo that updates the dial positions.
>
> I looked at g_timeout_add however cant figure out how to implement this in
> jgtk.
>
> Lets say a function that prints 'hello' every 2 seconds :
> print_hello_function =: 3 : 0
> smoutput 'hello'
> )
>
> I suppose to call this function at an interval it should look something like
> this
> g_timeout_add 2000; print_hello_function
>
> But how/where to call this (how does the gtk main loop work in J)?
>
> Any other suggestions with links or examples/demos to look into achieving
> something like this are welcome. A simple standalone program demonstrating
> the use of a timer with gtk would be best :)
>
> Thanks,
> Emir
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm