Zoran
You need to use ActivateKeyboardLayout in order to do that. You declare it using
DECLARE INTEGER ActivateKeyboardLayout IN user32;
INTEGER hkl, INTEGER Flags
You must load and check locale identifiers for Serbian Latin and Serbian Cyrillic ( using GetKeyboardLayouts ), then in the GotFocus() of each field, you can put
ActivateKeyboardLayout ( LanguageLocaleIdentifier, 0 )
The best way for you to see a right implementation in VFP is to see:
http://www.news2news.com/vfp/?function=-1&example=275Cheers
Jaime
>On a form (CP 1251) user on some fields has to type on serbian (Latin) language and on some others on serbian (cyrilic). Advanced settings for non-unicode programs on "regional and language options" is set to serbian (cyrilic). Font is Times New Roman. How to implement such a behavior without forcing user on a selected form field to switch between keyboard languages (serbian latin or serbian cyrilic)? Is it possible to join somehow language on a specific fields?
>
>For example on field 1 user should see QWE and on field 2 ЉЊЕ (this is a difference between serbian latin and serbian cyrilic) by typing same letters.
>
>Thanks in advance.
Why do programs stop working correctly as soon as you leave the Fox?