Re: Interupting a running procedure using Widget event interupts. [message #83104] |
Wed, 06 February 2013 16:47 |
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 #83140 is a reply to message #83137] |
Wed, 06 February 2013 01:17  |
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  |
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
|
|
|