Page 1 of 1

Unicode chart titles using Delphi 7

Posted: Mon Feb 20, 2012 5:06 am
by 16861596
I have TeeChart Standard v2011 VCL/NET and am using it with Delphi 7.
My Delphi 7 application fires up with either English, Chinese or Russian depending on the current Locale. My translations resource strings are stored and edited by using Delphi's Translation Manager. I have just upgraded to TeeChart Standard v2011 VCL/NET so that the titles in the charts can display the unicode resource strings (as the default version that comes with Delphi 7 does not support unicode).
In the Translation Manager I can set the titles to (Eg.) Russian character strings but when I run the app after selecting the Russian locale, the strings end up as '??????' in the chart titles. In the chart I have made sure that the titles fonts are using Cyrillic (Russian script).
Given that TeeChart v2011 supports unicode, can you tell me where the problem lies?
Thanks
-Rod

Re: Unicode chart titles using Delphi 7

Posted: Mon Feb 20, 2012 8:07 am
by 9350556
Hi Rod,

I recommend upgrading to the latest version of Delphi because you will need Unicode, but that doesn't solve your problem now.
Delphi 7 is ansi only. This means that your application can display latin characters, ararbic, hebrew, chinese, but not at the same time.
There is a setting in your Control panel, translated from my Dutch Vista it is called Language settings. You can set how values, money, date and time are displayed. On the last tab you will find settings for the language that is to be used in non-unicode applications.
Once you switch to Cyrillic you will see that others texts may contain question marks.

Hope this helps.
Bert

Re: Unicode chart titles using Delphi 7

Posted: Mon Feb 20, 2012 10:36 pm
by 16861596
Thanks Bert.
Although D7 standard components are ansi, I use TNTControls to provide the unicode support. The rest of the app is fine as far as display of unicode characters goes. It's only the charts that I'm having trouble with. I'm wondering if it is the TChart/Resource string loading that occurs transparently when the app starts up where the problem lies. I was hoping that someone could confirm this or not. Perhaps I've wasted my time/money purchasing the latest version of TeeChart. Surely unicode resource strings can be loaded into the TChart titles at program startup!?
-Rod
PS. I do have Delphi 2010 but the app I have in D7 is too large/complex to move into the D2010 compiler as there are many ansi/unicode string issues to address.

Re: Unicode chart titles using Delphi 7

Posted: Tue Feb 21, 2012 10:34 am
by 9350556
Hi Rod,

I have heard about TNT controls, but haven't used them myself. With these controls you can display unicode characters when using Delphi 2007 or below.
TeeChart however, will still be ansi based because of the underlying framework, that is why you will see the question marks.

Did you try my suggestion?

• To open Regional and Language Options, click Start, click Control Panel, click Date, Time, Language, and Regional Options, and then click Regional and Language Options.

• This setting enables programs that do not support Unicode to display menus and dialog boxes in their native language by installing the necessary code pages and fonts. However, programs designed for other languages may not display text correctly.

• Only non-Unicode programs are affected by this setting. The language you select for this option does not change the menus and dialog boxes of Windows or other Unicode programs.

http://www.microsoft.com/resources/docu ... x?mfr=true

Bert