Re: Programmatically language switch
- From: Alex Cabbage <AlexCabbage@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 6 Oct 2005 13:10:34 -0700
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!
> >>
> >>
> >>
>
>
>
.
- References:
- Re: Programmatically language switch
- From: Paul G. Tobey [eMVP]
- Re: Programmatically language switch
- Prev by Date: Re: HP iPAQ hx4700 processor type
- Next by Date: Re: Programmatically language switch
- Previous by thread: Re: Programmatically language switch
- Next by thread: Re: Programmatically language switch
- Index(es):
Relevant Pages
|