开发者

Font.Charset and TButton

I am setting Font.Charset to EASTEUROPE_CHARSET for all controls on my form. This works great for controls such as TLabel.开发者_如何学编程 But for controls that are simply a wrapper around a windows control, e.g. TButton, some characters are not displaying correctly.

Doing a Google search I have discovered that this is due to Font.Charset not matching the system codepage.

But I cannot find how to fix it. I am using Delphi 7, maybe this has been fixed in later Delphi's, I don't know.

Anyone help?

Thanks,

AJ


You need to change the system default language for non-unicode programs. It is in Control Panel, under regional languages and settings.


If you want to be multi-lingual in Delphi then you should just move up to the latest version. Working with code pages is a world of pain that disappears entirely when you embrace Unicode.


Delphi 7 does not have Unicode Support (Though it should have support for some European Languages) so this may be your issue. Delphi 2009 provides comprehensive Unicode Support to Delphi.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜