Re: XForms: canvas demo

From: T.C. Zhao (
Date: Sun Apr 02 2000 - 23:51:26 EDT

  • Next message: Danny G. Holstein: "XForms: timers"

    # To subscribers of the xforms list from "T.C. Zhao" <> :

    Sorry for taking this long to respond. As usual
    Steve is right about idle_delta affecting
    the canvas although I haven't figured out how
    (and why). I'll start digging into the code.
    In the meantime, you can workaround the initialization
    problem by setting the delta to some small value,
    then when you know the initialization is finished,
    you can reset it to something reasonable, say, 50 millisecond.
    (incidently I also think the delta should not affect
    the *behavior* of counters either. It may affect
    how many times a counter is checked, but the repeat
    rate *should* be based on absolute time, not
    how many deltas. sigh).

    --- Thomas Vosegaard <> wrote:
    > # To subscribers of the xforms list from Thomas Vosegaard
    > <> :
    > Steve Lamont,
    > > It looks to me as if there is a built-in delay in the internal
    > event
    > > handling routine -- meant to handle the idle callback delta.
    > >
    > > The workaround is to turn this off by calling
    > >
    > > fl_set_idle_delta( 0 );
    > >
    > > anywhere after the fl_initialize() and before you drop into
    > > fl_do_forms().
    > >
    > > This delta should probably be zero by default. TC?
    > Some days ago you proposed the above workaround for slow
    > initialization of
    > canvases. I have also found that this speeds up the process of
    > drawing the
    > canvas the first time.
    > However, there is a drawback. I realized that the counter class uses
    > this idle
    > delta to determine the repetition speed when you press one of the
    > arrows. That
    > is, with idle delta=0 the counter reacts many times on one
    > mouse-press (several
    > hundreds), and consequently the workaround may not be a good idea.
    > Is there another workaround or a workaround for this workaround?
    > Thomas
    > _________________________________________________
    > To unsubscribe, send the message "unsubscribe" to
    > or see
    > XForms Home Page:
    > List Archive:

    Do You Yahoo!?
    Talk to your friends online with Yahoo! Messenger.
    To unsubscribe, send the message "unsubscribe" to or see
    XForms Home Page:
    List Archive:

    This archive was generated by hypermail 2b29 : Sun Apr 02 2000 - 23:58:26 EDT