[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: keyboard events with WIDGET_DRAW
- Subject: Re: keyboard events with WIDGET_DRAW
- From: davidf(at)dfanning.com (David Fanning)
- Date: Tue, 22 Jun 1999 16:37:21 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <Pine.A41.4.10.9906221251080.81442-100000@dante19.u.washington.edu>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:15326
David Mattes (dmattes@u.washington.edu) writes:
> does anyone know how to capture keyboard events when a draw widget has
> focus??? i'd like to be able to use keypresses as shortcuts when someone
> is using the mouse inside the draw widget.
This is not the sort of thing that can usually be done
with widgets. However, J.D. Smith came up with a clever
hack that works surprisingly well. I wrote an article
about it that you can find here:
http://www.dfanning.com/tips/keyboard_events.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155