Jump to content

New: Back key doesn't work in edit boxes (style ES_NUMBER)


Recommended Posts

Guest SerenaLien
Posted

I developed a user interface with a number of edit controls on it and have overridden the back key so that backspace works within the controls. I noticed that with the edit controls set to only take numbers, you can type numbers into them but not delete them. The other edit controls work perfectly fine, so I suspect this to be a Smartphone bug.

It also explains why people have seen that the Orange update authentication edit box doesn't process the back key (as it expects a pin number it is probably set to ES_NUMBER also).

Guest SerenaLien
Posted

I looked at it again, and found that if you configure the edit box for numerical input only (the way it says to do it in the help file) ie send the message EM_SETINPUTMODE with lParam EIM_NUMBERS to the edit control, the backspace key then works properly.

I still think it's a bug though that edit controls on Smartphone can't be set to ES_NUMBER style. A lot of people will try and port PocketPC user interfaces like I did, and will find the same problem.

Thanks to the people in the SmartphoneDN forum who replied..

cheers, Serena.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.