NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

如何在程序中改变string框中某一行字体的字号和颜色?

在程序中,我想对string框中的某些行的字号和字体进行修改,请问如何实现???
0 项奖励
1 条消息(共 12 条)
8,344 次查看
先选中字符,后选择工具栏字体选项即可对字体的大小,颜色设置了。
0 项奖励
2 条消息(共 12 条)
8,324 次查看
这个我知道,我要在程序运行当中给string控件添加一行文本,并设置这一行文字的字体和颜色。哪位知道,谢谢了
0 项奖励
3 条消息(共 12 条)
8,319 次查看

Your case can be solved as below, but little trouble, cause LV isn't supporting a indicator indicates many style and color characters,

Create many indicators (namely ,many style and color font)  and shape them to where its location is, you can hide indicator's frame and back panel. leaving font.

________________________________________________________


Try to make everything Automatic
0 项奖励
4 条消息(共 12 条)
8,315 次查看

动态改变可能就是要用到属性节点了

试试看

0 项奖励
5 条消息(共 12 条)
8,314 次查看
yulzhu,
           Would you help to tell how a indicator show two style font together by using "property note " ? example, row 1 is bure font, row 2 is red font ?
and I don't konw what setting is as using property note , please help thanks @!
________________________________________________________


Try to make everything Automatic
0 项奖励
6 条消息(共 12 条)
8,305 次查看

我试过了,一个indictor的text color是唯一的

所以除了静态的改变一行的属性,目前我已经的没法改

失误了,没有仔细研究过啊

0 项奖励
7 条消息(共 12 条)
8,302 次查看
how long is your string?

if it is not very long, you can try to use a picture control and write text to it, that way you can control what ever you want.

-Joe
0 项奖励
8 条消息(共 12 条)
8,269 次查看
beside using a picture control, you can still change the color of the string. check out the attached image.



make sure you selected "Text.FontColor".



-Joe

帖子被Joe Guo在07-14-2005 08:52 AM时编辑过了

0 项奖励
9 条消息(共 12 条)
8,273 次查看
to Joe Guo :
     你好,你说的方法很好,只是在程序中给sting后面再添加substing后,改变的颜色又变成了原样,请问如何解决?
    
      谢谢!
0 项奖励
10 条消息(共 12 条)
8,248 次查看