comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Evenly timed events in a widget program
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Evenly timed events in a widget program [message #85865 is a reply to message #85864] Sun, 15 September 2013 09:45 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Grier writes:

> I'm working on a widget program that resembles a TV screen with icons overlaid on the
> video. In my present implementation, a widget timer event triggers updates of the TV screen,
> while users interacting with the icons generate other widget events. My problem is that the timer
> events can get stacked up behind a great many user-generated events, causing the TV screen to
> update erratically.
>
> Is there a way to convince xmanager to act on timer events as soon as they
> arrive, rather than working its way systematically but indiscriminately through
> the stack of events?
>
> Alternatively, is there a way to run the TV widget as some sort of background process
> that runs on its own fixed schedule independent of the user interaction in the foreground?
>
> If the best answer is to ditch xmanager and to call widget_event directly,
> can anyone point me to an effectively written example that I might use as a
> model for my own code?

I would say the answer is probably no on all accounts. :-(

You can certainly clear events (CLEAR_EVENTS keyword to Widget_Control),
but it doesn't sound as though you really want to. The controls are
probably there for a reason. I don't know any way to force an event to
the head of the queue, like the VIP pass at Disney World does.

Running the TV widget as a background process is an interesting idea.
What if you wrote it as a widget object and then controlled it from the
IDL bridge? Doubt it will work, but I would be interested in the result
if you try it. :-)

Ditching the XManager is almost always a bad idea, fraught with
unexpected consequences, usually.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: The IDL library for Shuffled Complex Evolution (SCEUA)
Next Topic: Count duplicate elements in an array but keep their order!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 12:35:34 PDT 2025

Total time taken to generate the page: 0.08086 seconds