[SAMPLE] Forcing InputPanel into numeric mode

A

Alex Feinman [MVP]

This seems to be a rather popular request. Although it does not look like
there is an "official" API to do it, with a bit of good ol' hack you can
force standard Pocket PC virtual keyboard to switch to numeric mode.

http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=893

The trick is to check the color of an appropriate part (left top corner) of
the virtual keyboard window and if it is not the color of window text to
simulate mouse click by sending a couple of mouse messages.

This is hack and you should use it only if you can live with it not working
at some point (weird color scheme, new version fo Pocket PC, Oracle buying
the Windows CE division and migrating all devices to embedded Linux,
tsunamis and various other elements of typical force majeur clauses)

Alex Feinman
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top