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

Home » Public Forums » archive » Re: Keyboard input from widgets
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 input from widgets [message #29345 is a reply to message #29342] Wed, 13 February 2002 08:37 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Oleg Kornilov (to_oleg@mail.ru) writes:

> I have draw widget and I use mouse events in it (cursor moving and
> buttons). I need to know also what key on keyboard was pressed (for
> example, for precision moving of mouse cursor). Problem that
> base_widget does't generate events for keyboard and draw_widget
> switches into stdin (IDL command line). Probably I can use timer
> events and get_kbrd() to check keyboard buffer.
> Is there another way ?

There are two problems with this design that come
immediately to mind. One, there is no way to get
keyboard input into a widget program without performing
a severe hack. See, for example:

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

The other is that there is no way AFAIK to programmatically
place the cursor at a particular location in a draw
widget.

Other than that, this ought to be a piece of cake. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Object/Direct Graphics Question
Next Topic: how to debug a IDL DLM routine

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

Current Time: Sat Oct 11 16:02:49 PDT 2025

Total time taken to generate the page: 0.72700 seconds