Re: keypressed pauses program - how to do that? [message #3180 is a reply to message #3067] |
Mon, 21 November 1994 09:06  |
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 #
###########################################################
|
|
|