Mouse and keyboard events in a draw widget [message #10544] |
Wed, 17 December 1997 00:00  |
James Albert
Messages: 4 Registered: September 1996
|
Junior Member |
|
|
Hi
I'm new here, and fairly new to IDL programming. I have a problem,
which probably has an easy solution, but I can't find any references to
the problem area in the manuals. If anyone here can help me, I would be
most appreciative
Here's the bzz:
I have a draw widget that I do a bunch of image/coastline plotting in.
I am currently currently working on a tool that will let the user
measure a target in the image, in pixels. The tool has a vernier which
should open and close (imagine a C-clamp) and the tool should rotate.
I have all the code in place with one exception; no user interface to
the actions. I think I have two choices;
1) an additional base with four buttons on it:open,close,rotate
clockwise, rotate counter clockwise.
This should be relatively easy to implement, but it's not my first
choice
2) using the cursor keys to hook the actions. Unfortunately, I can't
find any information on getting keyboard events in DrawWidgets -
get_kbrd() just doesn't work until the widget is destroyed
Any ideas?
--
James Albert
Programmer/Analyst
Satlantic Inc.
902-492-4780 (voice)
902-492-4781 (fax)
james@satlantic.com
|
|
|