复选框标题中的希腊字母有问题

编程入门 行业动态 更新时间:2024-10-27 11:18:01
本文介绍了复选框标题中的希腊字母有问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经使用"charmap"来获取希腊字母β"beta"的unicode(正如几天前在这里所建议的-谢谢大家的有用答案),它确实可以解决问题. 但是,我现在尝试添加"Gamma","Psi","Delta"和"Phi",尽管在实际运行程序时预览有效,但我还是得到了其他字符.我尝试在"charmap"中使用MS San Serif,认为这是对话框中使用的字体,但没有区别. 有任何想法吗? 在此先感谢:)

I have used ''charmap'' to get the unicode for the Greek letter β ''beta'' (as advised on here a few days ago - thank you all for the useful answers) and it worked a treat. However I am now trying to add ''Gamma'', ''Psi'', ''Delta'' and ''Phi'', and although the preview works when I actually run the program I get other characters altogether. I tried using MS San Serif in ''charmap'' thinking that would be the font used in the dialog but it made no difference. Any ideas anyone? Thanks in advance :)

推荐答案

这是一个字体问题,只有我猜.您能否尝试一招,例如-仅在运行时设置字幕值. 例如:-在设计时不要在属性框中设置任何标题值.而不是在运行时使用代码设置值.说,我正在使用一个名为chkAlpha的复选框,然后 chkAlpha.Caption.Value =α"//同样地进行渗入. 试试这个,让我们知道. 还要检查编辑器使用的字符集(如果是ASCII或UNICODE.). This is a font issue only I guess. Could you please try a trick, like - set the caption value at runtime only. eg.- Dont set any caption value in property box while designing. Instead of set value at runtime using code. Say, I am using a Checkbox named as chkAlpha, then chkAlpha.Caption.Value = "α" // somting likewise. Try this & let us know. Also check the charecter set used by your editor, if that is ASCII or UNICODE.

Beta可以用一个字节编码... :) 尝试使用"MS Shell Dlg"字体(1) 在 unicode .rc文件(2)中:) Beta can be coded by one byte... :) Try to use "MS Shell Dlg" font (1) in your unicode .rc file (2) :)

在charmap中,如果您真的想获得Unicode范围,请选择高级视图,可以现在选择您的字符集(不要选择DOS字符,选择Windows:Greek可能是最安全的.然后您将只看到希腊字符集. 您昨天选择的ß可能是0xDF,即拉丁文小写字母SharpS. 现在,我看到您在C/C ++/MFC部分中发帖,这使我想到下一个问题:这是具有Unicode支持的32位Windows可执行文件吗?否则就是完全不同的局面了. In charmap, if your really want to get at the Unicode ranges, select advanced view, you can now choose your character set (do not select the DOS character, it may be safest to select Windows:Greek. You will then only see the Greek character set. The ß you selected yesterday was probably 0xDF, Latin Small Letter Sharp S. Now I see you''re posting in the C/C++/MFC section, which brings me to my next question: Is this is a 32 bit Windows executable with Unicode support? Otherwise it''s a whole different ballgame...

更多推荐

复选框标题中的希腊字母有问题

本文发布于:2023-11-07 09:02:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1566047.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:希腊字母   复选框   标题

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!