couple Input Panel Questions

T

tiger79

Hi,
I'm implementing an InputPanel in one of my Smart Device projects.
I want to be ablt for an user to select a letter with the InputPanel.
I placed one in my project (with a mainmenu) and its always visible, so no
problem there. I placed a button in my form, my intention was to press the
buton and then the InputPanel would expand automatically. I tried using
InputPanel1.Enabled = true;
but that aint doing nothing really... Any idea how to implement this ?

Second question :
About the letter that is selectd. What method or exception can I use to
capture the letter that the user has selected on the SIP ?

Thanx...
 
T

Tom Krueger [MSFT]

Hello,


tiger79 said:
Hi,
I'm implementing an InputPanel in one of my Smart Device projects.
I want to be ablt for an user to select a letter with the InputPanel.
I placed one in my project (with a mainmenu) and its always visible, so no
problem there. I placed a button in my form, my intention was to press the
buton and then the InputPanel would expand automatically. I tried using
InputPanel1.Enabled = true;
but that aint doing nothing really... Any idea how to implement this ?

It sounds like you are doing this correctly. I would check to make sure
that the line of code is being executed. Put a break point on it.

It is probably common to enable the input panel on a textbox gotfocus and
disable it on a lostfocus.
private void textBox1_GotFocus(object sender, System.EventArgs e) {
inputPanel1.Enabled = true;
}

private void textBox1_LostFocus(object sender, System.EventArgs e) {
inputPanel1.Enabled = false;
}

Second question :
About the letter that is selectd. What method or exception can I use to
capture the letter that the user has selected on the SIP ?

hmm, I'm not sure if there is a great way of doing this. What is it that
you are trying to accomplish?

How about adding a textbox that is NOT visible. Then on click of the button
set the focus to the textbox. At this point use the events on the textbox
such as KeyPress to get the character.
 

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