469,654 Members | 1,850 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,654 developers. It's quick & easy.

Refusing to accept the focus

Rob
[If this is in the wrong group, suggestions on a better one are
welcome...]

Windows XP's "on-screen keyboard" accessibility tool accepts clicks on
a virtual keyboard and sends them to whatever app has the input focus.
But it does one neat thing I can't reproduce: it does not appear to
steal the focus from the other active app when you click on its keys.
(It's in the "Accessibility" program group; try it for a better
explanation.)

I've written an onscreen keyboard as part of a touchscreen app I'm
writing, and it works great. But ... for the brief moment after the
user touches one of the keys, my virtual keyboard gets the focus before
sending it back to the other app. This results in a noticeable "blink"
or "wink" or "flash" of the other app's grabber, etc.

Anyone done this know how MS's on-screen keyboard accepts clicks on the
keys but doesn't appear to take the focus?

I've looked in the typical places (codeproject, guru, sourceforge,
google, etc.) to no avail. Thanks!

....R

Aug 3 '06 #1
1 1259
Rob
Thanks to the millions of great websites, forums, newsgroups, I did
find one way that appears to work just fine (adding WS_EX_NOACTIVATE to
the CreateParam's ExStyle). Does anyone have any thoughts on any
possible problems?

....R

Rob wrote:
Anyone done this know how MS's on-screen keyboard accepts clicks on the
keys but doesn't appear to take the focus?
Aug 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

17 posts views Thread by Neil Ginsberg | last post: by
1 post views Thread by Djarnis | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.