Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Input Panel

5 views
Skip to first unread message

James [hotmail]

unread,
May 26, 2009, 10:38:38 PM5/26/09
to
Hello everyone,
I would like to control the microsoft.windowsce.forms.inputpanel inputmode.

I have a text box that will only accept numerics. I have used Keypress and
keydown with success but having the num pad come up would be best.

Apparently the keys used to switch mode are not processed, that is, using
keypress they are not echoed. My question is, can the sendMessage
method be used and if so, what would the int msg, int wParam, int lParam be
for the numeric keypad?

Some time ago I posted this message in the Pocket PC Developer forum and
have had no replies - since the input panel is in the Windows CE namespace
perhaps you guys/gals know the answer or can send me to the right source.


Thank-you.
James

Paul G. Tobey [eMVP]

unread,
May 28, 2009, 12:29:16 PM5/28/09
to
Seems like you want to change InputPanel.CurrentInputMethod... What have
you tried with respect to the InputPanel class?

Paul T.

"James [hotmail]" <james_...@hotmail.com> wrote in message
news:un$dcQn3J...@TK2MSFTNGP04.phx.gbl...

James [hotmail]

unread,
May 28, 2009, 9:12:33 PM5/28/09
to
Hello Paul,
I can set the CurrentInputMethod to the Keyboard. However, it is the
"inputmode" that seems to be the problem. After setting the inputmethod to
the Keyboard, I would like to specify the inputmode to InputMode.Numeric .

Any thoughts would be appreciated.

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:uPEnvF73...@TK2MSFTNGP05.phx.gbl...

Paul G. Tobey [eMVP]

unread,
Jun 1, 2009, 1:28:17 PM6/1/09
to
So the numeric input isn't listed as a separate SIP on the menu? If not,
you'll have to find some documentation for the input panel you're using and
see what it says as far as selecting numeric. How do you do it from the
user interface?

Paul T.

"James [hotmail]" <james_...@hotmail.com> wrote in message

news:%23HNFqp$3JHA...@TK2MSFTNGP04.phx.gbl...

James [hotmail]

unread,
Jun 1, 2009, 9:32:42 PM6/1/09
to
Hey Paul,
Load any of the pocket pc emulators and you see that you have to press the
num lock key on the keyboard... you cannot trap when some keys are pressed -
num lock is one of them.

-James

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT

com> wrote in message news:eqZFR5t4...@TK2MSFTNGP05.phx.gbl...

Paul G. Tobey [eMVP]

unread,
Jun 2, 2009, 12:34:55 PM6/2/09
to
Without the source code for that SIP, it's pretty hard to tell what might
work. As far as I can tell, there's nothing documented or even suggested
about doing that programmatically. I suppose that, if you know the location
coordinates where a click makes that happen, the "123" 'key', you could use
PostMessage() to send a WM_LBUTTONDOWN and WM_LBUTTONUP to 'click' it (but
I'm not sure how you'd detect if it was already set or not). I guess that
you have to decide what it's worth to you, as there are a lot of special
cases for that scheme.

Or, I guess that you could create your own input panel, maybe just numerics,
and select that one for your form operations. That would be relatively
easy, I think. You could, if you wanted to, create a method to send it a
message to change from numeric to alpha and back, too.

Paul T.

"James [hotmail]" <james_...@hotmail.com> wrote in message

news:edVAhHy4...@TK2MSFTNGP03.phx.gbl...

James Hunter Ross

unread,
Jun 9, 2009, 5:20:13 PM6/9/09
to
I'm pretty sure that I've seen numeric-only SIP implementations, perhaps on
CodeProject or someplace like that. (I've seen several, free, specialized
SIP implementations out there somehere.) I'm sure you could install one and
bring it up, but then you have to ensure it is deployed too, which might be
prohibitive. Good luck!


James [hotmail]

unread,
Jun 11, 2009, 8:41:38 AM6/11/09
to
Thanks Paul,
I have the GUI managing the users input, validation etc., but I thought one
step better would be to present, (start with), the numeric keypad. Like the
idea about PostMessage, glad you reminded me about never knowing what
keyboard is set... making my own is the best option, but that will wait till
later.

Sorry for the late reply; appreciate your help Paul!

-James


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT

com> wrote in message news:#hwqFA64...@TK2MSFTNGP02.phx.gbl...

0 new messages