Is it possible to restrict language of virtual keyboard, or SIP, to a English only? I'm developing a multilingual game with Scoreloop and want to allow users to enter their nicknames in latin only.
I don't think it is possible, but if it were you shouldn't.
Leave the keyboard language selection to the user. It would be very confusing for the user to suddenly have a different SIP.
Just validate the string that is entered.
EDIT
You are not looking for an input language but for a character restriction so another option is to design your own SIP with the characters you want to allow
Related
I am trying to force the keyboard language to be English only irrespective of the culture of the app running on windows phone 7.5. I tried to hide that language button of the keyboard with various input scope but no input scope provides that facility.
How can I force the keyboard to be in English language only irrespective of the culture of the application?
Keyboard language is a global preference. On Windows Phone 7 and 8, third-party apps have no impact whatsoever on global preferences. So there's no way to do what you're asking.
i don't know about Japanese IME's when user change the IME ex) Microsoft IME -> Google IME
when i change the chinese ime in Chinese Language, like Pinyin -> Shuang Pin
They don't send the message to window anything.
but when i change japanese ime, they alwasys send the message WM_INPUTLANGCHANGE
but my language is still Japanese.
there is no language changing. this is a changing of ime.
i want to know why.
I Answer my question because i find the problem.
if someone has a same problem, i want to give you some hint.
when Keyboard Layout Change, it should be occur WM_INPUTLANGCHANGE.
windows has a default Keyboard layout. and you can find these layout in registry.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts
Alomost IME is matched one by one as a language.
but Google IME is special.
Japanese GoogleIME has it's own Keyboard Layout.
so, when i try to switch from Microsoft IME to Google IME,
this is not a switching of IME.
this is a Changing of Keyboard Layout.
i didn't check all of IMEs but i think Some IME has their own Keyboard layout.
this is why WM_INPULANGCHAGE Message is Called.
I want to create a way of enabling my computer to highlight text in any given text field, of any application, as I type it. The idea is I would press a hotkey and that would cause all text typed after pressing that hotkey to be highlighted until I press the hotkey again. What technologies, if any, could achieve this on a Windows XP or Windows 7 machine? And where do the current text selection behaviors such "live" (e.g. selection using shift+arrow keys, and deselection on key press, etc.)?
It's exceedingly unlikely that you could achieve this.
You can use RegisterHotKey and keyboard hooks to intercept the hot key and subsequent typing. That's not too bad.
What you won't be able to manage is to arrange that the text you type will appear highlighted. You'd have to special case many of the target applications. Applications like web browsers often don't use windowed controls for their input fields. There's no easy way to highlight the text as it is typed into those fields.
Your question used terms like "system-wide" and "any given text field". That's just not a realistic goal. Making this work for a single class of fields in a certain apps sounds more plausible. You may be able to do it when the text is going to land in a windowed edit control. Although even that sounds fraught with potential threading conflicts. You may also be able to make some headway with apps that support UIautomation, but again it doesn't seem like it would be very easy and many apps don't support UIautomation.
I just wonder if we could take advantage of multiple language support in windows phone 7, 7.5 in any mean to enhance user's experience. For example says that how I can detect what language user use on the phone (this appear in start up setting) to auto change my app language. Or perhaps, what is a best way to provide user with multiple language support?
You can do this with Resource Files
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff637520(v=vs.105).aspx
There is some value in allowing a user to choose the language themselves, in particular if you want to support a language not supported by the phone, ie Chinese on 7.0
If you go into settings > keyboard, and then add another language it will give you options when the keyboard comes up so that useless autocorrect is no longer useless when typing in another language.
I had the problem of everything I wrote in spanish being autocorrected.. This is especially annoying when it splits your word into 2 as you are forced to retype it.
When adding a second language, you will have an extra button at the bottom of the keyboard so you can switch between lanugages. This changes the dictionaries also.. I believe you can have as many as you like.
i have made my custom keypad so i want to enter the text with my custom keypad. But the problem is that every time when textbox get focus the default keypad pops up.
so how can i fix this or i have to have to opt some patch.
I don't believe this is possible, as the SIP is controlled by the OS, and is shown depending on whether you have a hardware keyboard or not. If you really want to have a custom keypad, you will probably need to design your own data entry controls as well (ie. custom textbox that shows your SIP).
You can't do it the "elegant" way. If you really need this you could build the following:
1. User touches the control (control has focus ... open your custom SIP)
2. immediately switch the focus to a hidden, non textbox control
3. OS SIP will not show if this is done fast enough
Sorry, this is the only way I am aware of :(
A related example: http://www.dreamincode.net/code/snippet5650.htm
This is not possible, in this release anyways. I have also run into a problem with using the default keypad. But there are some options to use a keyboard that is designed for different types of input (ex. Search, Text, etc.).
Check out this article. It gives quite a few options in wp7 when it comes to the keypad. I'm sure one of these could be usefull.
All you have to do is set the InputScope = "" in the textbox control to whatever scopes are available(check article ^).
HTH.
try setting the IsReadOnly property of the testBox to true
Its an Interesting task .
I remember , i did the similar task with Windows Mobile 6 / 5 and Pocket PC 2003 where we have the access to the native API's via pInvoke and disabled the SIP Button . like using SHFullScreen
I think this is not supported in Windows Phone 7 since it is purely managed code .