what is siFormStorage
-
- Posts: 5
- Joined: Tue May 27, 2003 5:15 am
what is siFormStorage
what is siFormStorage
-
- Posts: 5
- Joined: Tue May 27, 2003 5:15 am
Can I get the default lang of the machine.
Can I get the default lang of the machine.
So I can open the lang according to the local language
So I can open the lang according to the local language
You can use standard Win32 API function GetUserDefaultLangID. For example, something like the below code:
For the full list of language identifiers see Windows.pas or Win32.hlpvar
LangID: DWORD;
begin
LangID := GetUserDefaultLangID;
case Byte(LangID) of
LANG_ENGLISH: siLang.ActiveLanguage := 1;
LANG_GERMAN: siLang.ActiveLanguage := 2;
else
siLang.ActiveLanguage := 1;
end;
Best regards,
Serghei Gaivan
Serghei Gaivan