Thanks. But How do I know when keyboard is getting activated? Unless I trap 
it in the main loop, the only alternative I can think of is to check in 
winEnter/winExit event. However in that case I need to know the window 
handle or ID of the keyboard window. Any ideas?

TIA.

-Sugho-


>From: Ken Krugler <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>Subject: Re: How to capture keystrokes from the keyboard dialog
>Date: Thu, 18 Nov 1999 11:12:06 -0800
>
>>Is there a way to stop certain keystrokes (e.g., <ENTER>, <TAB>) from the
>>keyboard dialog? I can trap keystrokes entered in graffiti area by 
>>handling
>>the keyDown event. However it doesn't stop the user from entering the
>>keystrokes form the keyboard dialog.
>
>Not easily, AFAIK. Typically you'd need to catch the case where your
>form is getting re-activated after the keyboard is dismissed, and
>then post-process the text in the field. If you wanted to be really
>nice to the user, you'd save off this field text before the keyboard
>is displayed, so that if your post-processing finds a problem, you
>can restore the text to what is was previously, rather than that data
>being lost.
>
>-- Ken
>
>Ken Krugler
>TransPac Software, Inc.
><http://www.transpac.com>
>+1 530-470-9200 (direct) +1 408-261-7550 (main)
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

Reply via email to