arrow keys & mouse in profiles.pro [message #10213] |
Mon, 27 October 1997 00:00 |
Cathy Campo
Messages: 7 Registered: October 1997
|
Junior Member |
|
|
I would like to modify the profiles.pro routine in the IDL library
to accept mouse input and keyword input (arrow keys). The idea would
be to move the mouse over an image to get the general location, and
then if the user wants to move pixel by pixel, they could use the
arrow keys, in order to view a slice of the 2D image.
I am running IDL 4.0 on HP workstation. When I do help, /keys I get
this info:
LEFT ARROW <\033[D> = <Cursor Left>
RIGHT ARROW <\033[C> = <Cursor Right>
UP ARROW <\033[A> = <Previous Line>
DOWN ARROW <\033[B> = <Next Line>
I would like to use this info, along with get_kybrd(1) in a while
loop to make the cursor sensitive to the mouse or arrow keys. Has
anyone done this before or have ideas?
Cathy
|
|
|