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

Home » Public Forums » archive » Re: Interupting a running procedure using Widget event interupts.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Interupting a running procedure using Widget event interupts. [message #83104] Wed, 06 February 2013 16:47
Matt Francis is currently offline  Matt Francis
Messages: 94
Registered: May 2010
Member
On Thursday, 7 February 2013 00:34:30 UTC+11, David Fanning wrote:
> Bogdanovist writes:
>
>
>
>> I am making a simple widget to interactively view sequences of images. I want basic 'player' functionality like play/pause, step forward/back.
>
>
>
> Here is a very old program written to explain how to do this very thing.
>
> It is a simplified version of XInterAnimate, with better documentation.
>
> It uses Timer events, and, more importantly, shows you how to turn
>
> events on and off.
>
>
>
> http://www.idlcoyote.com/tip_examples/xmovie.pro
>
>
>
> 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.")

Thanks for all the replies, that will do nicely.
Re: Interupting a running procedure using Widget event interupts. [message #83137 is a reply to message #83104] Wed, 06 February 2013 05:34 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Bogdanovist writes:

> I am making a simple widget to interactively view sequences of images. I want basic 'player' functionality like play/pause, step forward/back.

Here is a very old program written to explain how to do this very thing.
It is a simplified version of XInterAnimate, with better documentation.
It uses Timer events, and, more importantly, shows you how to turn
events on and off.

http://www.idlcoyote.com/tip_examples/xmovie.pro

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.")
Re: Interupting a running procedure using Widget event interupts. [message #83140 is a reply to message #83137] Wed, 06 February 2013 01:17 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Wednesday, February 6, 2013 7:54:36 AM UTC+1, Craig Markwardt wrote:
> On Wednesday, February 6, 2013 12:54:03 AM UTC-5, Bogdanovist wrote:
>
>> I am making a simple widget to interactively view sequences of images. I want basic 'player' functionality like play/pause, step forward/back.
>
> ...
>
>> Does anyone know how I could achieve what I'm trying to do, or is this just not possible?
>
>
>
> To do it in a more widget-ish way, you should set a timer event. See the TIMER keyword of WIDGET_CONTROL. You can set a timer event to happen after 1 second, and when you receive the timeout event, transition to the next image. That way, your widget application is always ready for any kind of event, including a button click. I'm just giving you the bare bones description of what to do. Actually setting up will take some effort. (for example to disable some buttons of your interface while in auto-slideshow mode)
>
>
>
> Craig

Hi,
have a look at this previous post. I also learned about the TIMER keyword.

https://groups.google.com/d/topic/comp.lang.idl-pvwave/cnbQM _oE0Fw/discussion

Cheers,
Helder
Re: Interupting a running procedure using Widget event interupts. [message #83142 is a reply to message #83140] Tue, 05 February 2013 22:54 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Wednesday, February 6, 2013 12:54:03 AM UTC-5, Bogdanovist wrote:
> I am making a simple widget to interactively view sequences of images. I want basic 'player' functionality like play/pause, step forward/back.
...
> Does anyone know how I could achieve what I'm trying to do, or is this just not possible?

To do it in a more widget-ish way, you should set a timer event. See the TIMER keyword of WIDGET_CONTROL. You can set a timer event to happen after 1 second, and when you receive the timeout event, transition to the next image. That way, your widget application is always ready for any kind of event, including a button click. I'm just giving you the bare bones description of what to do. Actually setting up will take some effort. (for example to disable some buttons of your interface while in auto-slideshow mode)

Craig
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: color tables and cgcolorbar
Next Topic: Re: 2D Savitzky-Golay derivative filter?

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

Current Time: Wed Oct 08 15:06:45 PDT 2025

Total time taken to generate the page: 0.00403 seconds