PDA

View Full Version : How to know current input mode in app?


songcf0374
05-28-2002, 10:03 PM
How to know current input mode in app:
capital or lowercase?
number or symbol?
We can only set these properties by ITEXTCTL_SetInputMode() now, but there is no ITEXTCTL_GetnputMode().

devi
05-30-2002, 09:31 AM
ITEXTCTL_SetInputMode() sets text entry mode - symbols, numbers, T9... not upper/lower case. There is no API to determine whether the input characters are upper or lower case, although you can get each character of the text string and determine its ASCII value to see whether its upper or lower case. To set a string to upper/lower case, use WSTRUPPER() and WSTRLOWER() helper functions.

Devi Krishnan
BREW Support