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

Home » Public Forums » archive » Re: draw widget + keyboard events
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: draw widget + keyboard events [message #31089] Mon, 17 June 2002 11:37 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Ken Mankoff" <mankoff@I.HATE.SPAM.cs.colorado.edu> wrote in message
news:Pine.LNX.4.44.0206070852280.17631-100000@snoe.colorado. edu...
>
> On Fri, 7 Jun 2002, Ken Mankoff wrote:
>> I have a draw widget, and I want to be able to respond to keyboard
>> events in the widget. Is this possible? I see a /MOTION_EVENT and
>> /BUTTON_EVENT flag for the draw widget, but no /KEY_EVENT
>
> OK, nevermind... sorry for not checking google first.


> The answer is "no", but you can hack it by hiding a text widget behind
> the draw widget. How to get the location of the mouse at the time of
> the keypress is another issue...

What platform?

If it is windows I have a .dlm that can poll keyboard, mouse and joystick
states. You generally would run it inside of a timer event and it provides
far better response than the text widget trick. Downside is that like the
text widget hack you can only read a single keypress at a time (although you
can simultaneously get keyboard, mouse and joystick states) and it is
windows only.


-Rick
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: speed up the display on Linux
Next Topic: ION Script & Netscape Server

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

Current Time: Fri Oct 10 12:56:41 PDT 2025

Total time taken to generate the page: 0.72198 seconds