Widget Question [message #76606] |
Thu, 09 June 2011 13:36 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I am trying to understand one of my own programs. (I know,
I'm embarrassed about it.)
If you have the Catalyst Library installed, you can
see what I am confused about. Compile the ImageStrip
widget, and run the ImageStrip_Test program.
IDL> .compile imagestrip__define
IDL> imagestrip_test
You are seeing 8 of 87 images in this image sequence.
If you click on the button widgets on either side
of the image strip, you will "advance" the image
sequence in that direction. So far, so good.
But here is the thing I am confused about. If you
hold the cursor down on one of the buttons, and
don't release it, then click the space bar, the
images will start to advance very rapidly. This
is a Good Thing, but it is confusing me.
This has nothing whatsoever to do with my event
handler, so far as I can tell. So, how in the world
does this happen!?
Is this an undocumented button widget thing? Magic?
Have I stumbled into the discovery of the century?
Does anyone have the faintest idea what might be
happening here? :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|