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

Home » Public Forums » archive » Widget to play and pause image stack display
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
Widget to play and pause image stack display [message #80197] Thu, 10 May 2012 07:24
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
Hi,
I would like to have a base widget with a draw widget where I play a movie (as in displaying a series of images from a stack).
I would like to have the typical two buttons that start the play of the movie and the pause button.
I'm not that good with widgets, but I can't thick of how I would be able to interrupt a loop that displays the images.
I would have had something like:

PauseButtonPressed = 0
ImgNr = 0
LoopInterval = 0.2
WHILE ~PauseButtonPressed THEN
TV, Image[ImgNr,*,*]
ImgNr++
IF ImgNr GT nImages THEN ImgNr = 0
WAIT, LoopInterval
ENDWHILE

Is there a way to check if the user has clicked something in the loop?

Thanks,
Helder
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: A little help
Next Topic: Re: Algorithm for PCA transform in ENVI

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

Current Time: Wed Oct 08 15:11:48 PDT 2025

Total time taken to generate the page: 0.00524 seconds