| Re: Keyboard Events on Windows [message #39196 is a reply to message #39178] |
Tue, 27 April 2004 10:17  |
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/
|
|
|
|