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

Home » Public Forums » archive » ? Keyboard events in idl 4.0.1 ?
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
? Keyboard events in idl 4.0.1 ? [message #14082] Mon, 25 January 1999 00:00 Go to next message
Peter Cornelius is currently offline  Peter Cornelius
Messages: 6
Registered: January 1999
Junior Member
Hello,

I would like to use the keyboard arrow keys to move around my cursor
on a draw widget (actually, to change its position variable's values)
since it's more convenient this way than fiddling about with a shaky
hand :-)

Any help appreciated.

Thanks in advance,

Peter.

---
Peter Cornelius <pc***NOSPAM***@inr.fzk.de>
Re: ? Keyboard events in idl 4.0.1 ? [message #14159 is a reply to message #14082] Tue, 26 January 1999 00:00 Go to previous message
J.D. Smith is currently offline  J.D. Smith
Messages: 214
Registered: August 1996
Senior Member
David Foster wrote:
>
> Peter Cornelius wrote:
>>
>> Hello,
>>
>> I would like to use the keyboard arrow keys to move around my cursor
>> on a draw widget (actually, to change its position variable's values)
>> since it's more convenient this way than fiddling about with a shaky
>> hand :-)
>>
>> Any help appreciated.
>>
>> Thanks in advance,
>>
>> Peter.
>
> Peter -
>
> You should get in touch with JD Smith, as he has done some very
> clever trickery to get around this problem.
>
> Dave
>
> Here's the text of a recent submission by JD:
>
> But I suppose I should add that not *all* attempts at widget trickery
> fail. One of the trickiest widget manipulations I've come up with is
> the hotkey widget, which allows textual events to be processed on draw
> (or other) widgets, by hiding a text widget behind it (see posts from
> last year). I use this technique in almost all of my widget
> applications. So, by all means, keep pushing the limits.
>

My method was documented by David F. at:

http://www.dfanning.com/tips/keyboard_events.html

Note that it works for events registered by a widget_text widget, which
do not include arrow keys (they used to move within the text field).
Moving the cursor, unless it's really a "sub-cursor" you've programmed,
is also difficult from within IDL. If it really is an IDL-drawn cursor,
you could consider using my method to map its motion to ijkm or some
similar key combination.

You don't mention what system you are using, but you should investigate
an OS solution already provided. Many OS's provide some form of
handicapped access functionality, which may include mouse movements
mapped to arrow keys when a certain key modifier is pressed. I've used
this functionality in the MacOS, and I suspect it is available
elsewhere.

Good Luck,

JD

--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
Re: ? Keyboard events in idl 4.0.1 ? [message #14173 is a reply to message #14082] Mon, 25 January 1999 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Peter Cornelius wrote:
>
> Hello,
>
> I would like to use the keyboard arrow keys to move around my cursor
> on a draw widget (actually, to change its position variable's values)
> since it's more convenient this way than fiddling about with a shaky
> hand :-)
>
> Any help appreciated.
>
> Thanks in advance,
>
> Peter.

Peter -

You should get in touch with JD Smith, as he has done some very
clever trickery to get around this problem.

Dave


Here's the text of a recent submission by JD:

But I suppose I should add that not *all* attempts at widget trickery
fail. One of the trickiest widget manipulations I've come up with is
the hotkey widget, which allows textual events to be processed on draw
(or other) widgets, by hiding a text widget behind it (see posts from
last year). I use this technique in almost all of my widget
applications. So, by all means, keep pushing the limits.

Just don't be surprised if the limits snap.

JD
--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
>
> ---
> Peter Cornelius <pc***NOSPAM***@inr.fzk.de>

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: topographical data
Next Topic: how do i read compressed tiff files?

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

Current Time: Wed Oct 08 13:51:46 PDT 2025

Total time taken to generate the page: 0.00549 seconds