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 
Return to the default flat view Create a new topic Submit Reply
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 messageGo 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 |*|
[Message index]
 
Read Message
Read Message
Read Message
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 17:32:10 PDT 2025

Total time taken to generate the page: 0.00402 seconds