Re: Programmatically language switch



PPS. I can set a numerical input (123...) and UPPERCASE or lowercase text.
But I can't switch to English (0x0409) from Russian (0x0419) by the program...
Why? This my Window and my Editbox...

"Paul G. Tobey [eMVP]" wrote:

> So, the characters being *displayed* are Latin, not Cryllic, or the keyboard
> layout is different? If it's a password, it's typically not really
> displayed anyway. If that's the case, and you're displaying * or something
> instead of the real characters, then, yes, changing the keyboard layout
> alone is the right answer. In that case, you don't want to think of it as
> changing the language of the EDIT control, but of changing how the
> keypresses on the keyboard are being interpreted, and that's *not* done by
> the control, so you'll need to switch it back when the focus leaves the EDIT
> control or when you're done inputting Latin characters.
>
> If you are displaying the characters of the password, you probably don't
> have to change anything in the EDIT control, as long as you aren't coming up
> against any text flow differences, etc., which I don't think you would when
> entering a password.
>
> Your English is a lot better than my Russian, or anything else...
>
> Paul T.
>
> "Alex Cabbage" <AlexCabbage@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:B25BAE16-354A-46EF-A8F1-7CC8E2B210E6@xxxxxxxxxxxxxxxx
> > Thanks!
> > But the matter is that my devices (MDA T-Mobile and SmartPhone Motorola
> > MPx-200(220) with Windows 2003) support Cyrillic. In regional settings it
> > is
> > specified: Language - English, Locale - Russian.
> > By default all fields of input (except for numerical) are established in
> > Cyrillic. And in some cases (for example at input of the password) it is
> > necessary for me to switch input to ENGLISH automatically.
> > It is not important for me, the keyboard layout and the language for
> > display
> > of data in an EDIT control are the same or not (though my opinion, that
> > all
> > the same - it is Unicode).
> > (Sorry for my bad English...)
> >
> > "Paul G. Tobey [eMVP]" wrote:
> >
> >> As far as I know, you can't change languages on a per-control basis.
> >> Keyboard layouts might be changeable, although that's up to the device
> >> OEM
> >> to decide whether they support the right interfaces to do that. In any
> >> case, the keyboard layout and the language for display of data in an EDIT
> >> control are *not* the same thing. If your device doesn't have support
> >> for a
> >> locale that uses Cyrillic in it, it's not going to work for you.
> >>
> >> Paul T.
> >>
> >> "Alex Cabbage" <AlexCabbage@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> >> news:CFE84B0D-72F3-4E69-91AA-29A5C3149B7C@xxxxxxxxxxxxxxxx
> >> > Really nobody knows, how it is possible to establish input language in
> >> > an
> >> > EditBox? Hm...
> >> >
> >> > "Alex Cabbage" wrote:
> >> >
> >> >> How I can switch an input language of an Editbox control in my
> >> >> programm?
> >> >> I
> >> >> can't find ActivateKeyboardLayout function in the MSDN for Windows CE.
> >> >> By
> >> >> default system language is Cyrillic (0x0419). I need to switch to
> >> >> American
> >> >> English (0x0409). SetLocaleInfo doesn't work, I don't know why? Please
> >> >> help!
> >>
> >>
> >>
>
>
>
.



Relevant Pages

  • Re: special characters, ie spanish accents
    ... If you do a web search on keyboard layouts and go to the ... characters instead of 30 is a different matter. ... There is also an English International layout that gives you many of the ... dead keys and you still see the original layout for English keyboards. ...
    (freebsd-questions)
  • Re: suggestions for new module name
    ... Several metrics of effort are used. ... > This module is useful for determining which keyboard layout is more ... That means that accented characters, unicode, etc. are not ...
    (comp.lang.perl.modules)
  • Re: How to type letter "é"?
    ... No, not the physical keyboard layout, but the current "active" logical keyboard layout that happens to be in effect in your operating system with your current regional settings. ... If you're using the US layout, "Alt Gr" will work just like the left "Alt" key, regardless of what it says on the keycap. ... The symbol marked up in the lower-right corner can be produced by holding down the "Alt Gr" key while pressing the other key - exactly the same way you produce alternative characters from the numeric row when using the "Shift" key. ...
    (alt.usage.english)
  • Re: Witch KeyEvent.VK_ for =?ISO-8859-1?Q?=27=B0=27_=28degree=29?= =?ISO-8859-1?Q?=3
    ... Marco wrote: ... The U.S. layout doesn't, but I don't know about Italian layouts. ... My point is to emphasize that virtual key codes are about describing specific keys on the system keyboard; they only indirectly have anything to do with characters. ...
    (comp.lang.java.programmer)
  • Re: Keyboard Display Wrong Characters
    ... my keyboard is displaying the wrong characters. ... Hello Rick ... Details button and check/change your keyboard setting to United Kingdom. ...
    (microsoft.public.windowsxp.general)