Issues enabling/disabling Soft input panel WM6/6.1

H

hileyj

I see some strange behaviour enabling and disabling the SIP in WM6. In my
application, I am enabling the SIP for input when a text box gets focus and
disabling it when focus is lost. The SIP state changed events are handled to
resize or move controls if necessary. Pretty standard I think.
This all works as expected if the controls are clicked on. The SIP gets
enabled and we can resize things properly. However, if the textboxes get
focus through pressing tab on the keyboard I see the following:
1. The SIP gets enabled and we see the event. However, the VisibleDesktop
height property reports 588 instead of the 376 it should be when the SIP is
enabled.
2. The SIP is quickly hidden again (even though the textbox still has
focus), and we don't get an event here.

This causes some annoyance where things may get resized improperly, and also
causes the annoying 'blink' of the SIP. Two questions:
1. Am I missing something here with the way this should be done?
2. Is it even considered good practice anymore to automatically enable the
SIP when textboxes get focus? I noticed none of boxes in the control panel or
other built in apps seem to do this.

Thanks,
Jon
 
S

stealthrabbi

I think it's still standard to auto enable/disable the SIP when focus
is gained/lost in textboxes. its' a pain in the arse though becuase
you have to have click events registered appropriately. The tab issue
you are seeing is because tab most likely refocusses over to another
control, and then back to your text box. What are your widget
TabIndex values?
 
M

Markus Humm

Hello,

I have the issue (WM 5 and newer) that certain actions (calling
Start/Settings and there some applets while my MessageBox.Show in my app
is active) hides the keyboard icon on the SIP. The sip stays though and
when one clicks on it the icon reappears!

Anybody any hints? For me it smells like a WM or CF bug (CF 1.0 but 2.0
also shows it)

Greetings

Markus
 

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