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

Home » Public Forums » archive » Re: Keyboard Events on Windows
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 on Windows [message #39196 is a reply to message #39178] Tue, 27 April 2004 10:17 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I'm trying to collect keyboard events in a draw widget in
> IDL 6.x with Windows 2000 Pro. I have set the KEYBOARD_EVENTS
> keyword to 2, and I am collecting keyboard events, sure enough.
>
> What I cannot do, so far, is collect the correct key when I
> try something like CNTL-s. The ASCII character reported from
> this formulation is number 19, which is listed in the Standard
> ASCII chart as "Device control 3". I have no trouble with SHIFT-s.
> (ALT-s just beeps at me as if I were trying to do something that
> would seriously damage the computer. Sigh...)
>
> Any ideas why I can't get CONTROL sequences into my event
> handler properly?

I have a rule about not answering my own posts, but feel
compelled to this time. (Oh, come on, it's a joke!)

It seems the CONTROL-letter sequences are represented
by ASCII characters 1-26. (The ASCII chart I was using
didn't indicate this.) Thus CNTL-s should, in fact, be...
let's see...ellmenopee...yes, number 19.

No hope for getting ALT-s to appear, since there is
no ASCII mapping, apparently, for the ALT key.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Array-transformation
Next Topic: Re: Reading in a string file

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

Current Time: Tue Dec 02 20:50:19 PST 2025

Total time taken to generate the page: 0.01967 seconds