Hi all,
I am currently working on a project which supports multi language English and Arabic...I designed a form for entering some datas ..I need to enter datas parallally on another form in second language.. I will explain in detail..
From the main window itself,program receives the user option that on which language to continue ...so the further forms will change language accordingly using the following code
PROCEDURE Changelanguagesettings()
IF gnLanguage=1 THEN
Nation(nationEnglish)
ChangeCharset(charsetAnsi,languageEnglish)
ChangeKeyboard(languageEnglish)
ELSE
Nation(nationArabic)
ChangeCharset(charsetArabic,languageArabic)
ChangeKeyboard(languageArabic)
END
so the data entry form will appear in arabic if i choose 'gnlanguage' as 2..In that form i am again giving an option to switch language to enter data..If user select switch language, a new form will be opened with following end of initialisation code..
IF gnLanguage=1 THEN
gnLanguage=2
ELSE
gnLanguage=1
END
Changelanguagesettings()
so that user can enter datas in English there..
and also on closing this form again switch language to previous ..
Everything works perfect..but on switching to second form ,the language settings of the current also changes to that, So that already filled edit controls resets its values..
What i want is User can enter data PARALLALLY on both forms....ie Arabic in first form and English in second form OR viceversa.ie switching language should affect only individual forms not all..when control goes to second form the language change should happen only there and moving on to the first form langauge supported there should be the old one.
In short changelanguage settings to be affected to newly opened form only ..not all windows..Previously opened windows to be continued in old languagesettings..
In the image attached you can see both forms 1 and 2 changes language to English..
Help Plz
[attachment 1996 pic2.jpg]
I am currently working on a project which supports multi language English and Arabic...I designed a form for entering some datas ..I need to enter datas parallally on another form in second language.. I will explain in detail..
From the main window itself,program receives the user option that on which language to continue ...so the further forms will change language accordingly using the following code
PROCEDURE Changelanguagesettings()
IF gnLanguage=1 THEN
Nation(nationEnglish)
ChangeCharset(charsetAnsi,languageEnglish)
ChangeKeyboard(languageEnglish)
ELSE
Nation(nationArabic)
ChangeCharset(charsetArabic,languageArabic)
ChangeKeyboard(languageArabic)
END
so the data entry form will appear in arabic if i choose 'gnlanguage' as 2..In that form i am again giving an option to switch language to enter data..If user select switch language, a new form will be opened with following end of initialisation code..
IF gnLanguage=1 THEN
gnLanguage=2
ELSE
gnLanguage=1
END
Changelanguagesettings()
so that user can enter datas in English there..
and also on closing this form again switch language to previous ..
Everything works perfect..but on switching to second form ,the language settings of the current also changes to that, So that already filled edit controls resets its values..
What i want is User can enter data PARALLALLY on both forms....ie Arabic in first form and English in second form OR viceversa.ie switching language should affect only individual forms not all..when control goes to second form the language change should happen only there and moving on to the first form langauge supported there should be the old one.
In short changelanguage settings to be affected to newly opened form only ..not all windows..Previously opened windows to be continued in old languagesettings..
In the image attached you can see both forms 1 and 2 changes language to English..
Help Plz
[attachment 1996 pic2.jpg]