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

Home » Public Forums » archive » keypressed pauses program - how to do that?
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: keypressed pauses program - how to do that? [message #3180 is a reply to message #3067] Mon, 21 November 1994 09:06 Go to previous message
dutch is currently offline  dutch
Messages: 8
Registered: June 1992
Junior Member
In article <39ge03$1do7@jurpool0.rz.uni-frankfurt.de>, frank@chaos.uni-frankfurt.dbp.de (Frank Hoffsuemmer) writes:
Hi all,
basically what I have is a program like this:

FOR loop=0,1000 DO BEGIN
TVSCL, image(loop)
WAIT, 2
ENDFOR

because the images aren't very big it's quite fast.
to make it slower I inserted a 'WAIT, 2' after the TVSCL line.
But that's not what I want to do. It would be much nicer to have something
like a key-controled slide-show, where e.g. <space> toggles pause/slide mode
and e.g <return> (in pause mode) advances the images manually.
I know there's some function for keyboard-stuff in IDL, but I don't know it's
name, and I have no idea how to implement it, that it works the waz I described
above. Maybe somebody wrote something similar an can help me out now.
--------------------------------------------------------
Maybe you should check out the XANIMATE widget-based routine which allows you
to produce an animation from a series of images, with mouse-control over the display rate, ability to pause on an image, etc. This may be preferable to
reading from the keyboard. (PS: the procedure 'read' can also be used to read from the keyboard).

-- Michael
###########################################################
# Dr. Michael Dutch email: dutch@eltcv1.epfl.ch #
# Centre de Recherches en Physique des Plasmas #
# Ecole Polytechnique Federale de Lausanne #
# 21 Ave des Bains Aussie.Abroad #
# CH-1007 Lausanne, SWITZERLAND ,--_|\ #
#---------------------------------------- / \ #
# << This space available for rent >> \_.-*._/ #
# Bill Posters is innocent! v #
###########################################################
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Floating Point Bug on Intel Pentium CPUs
Next Topic: Q: square plots in IDL

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

Current Time: Fri Oct 10 06:00:29 PDT 2025

Total time taken to generate the page: 0.73361 seconds