Page 1 of 1

Incorrect Turkish characters in siLang.MessageDlg()

Posted: Mon Apr 29, 2024 1:53 pm
by CPS
Some Turkish text displascorrectly in a standard Windows message dialog, so there is no problem with encoding...

MessageDlg(msgSameSignExplain, mtError, [mbNo, mbYes], 0);

A caption and buttons are still English, that's naturally.

...but there are incorrect chars if the same string in siLang.MessageDlg

siLang.MessageDlg(msgSameSignExplain, mtError, [mbNo, mbYes], 0);

A caption and buttons are Turkish per siLang component settings.

Image

There are obviously different messages fonts.
Is there any way to control siLang.MessageDlg() font properties?

Re: Incorrect Turkish characters in siLang.MessageDlg()

Posted: Mon Apr 29, 2024 2:31 pm
by CPS
I've found a solution!
A parent TForm where TSiLangLinked is placed Font.Charset must be DEFAULT_CHARSET.

Re: Incorrect Turkish characters in siLang.MessageDlg()

Posted: Mon Apr 29, 2024 4:32 pm
by isiticov
Hello,
I assume you're using non-Unicode version of Delphi. Then the parent form shall have properly defined charset for every language. And it will be used in the MessageDlg().