I guess it somehow has to do with the language coding... as it doesn't seems to have any problem when typing in English.
Nevertheless, the attached able to show the km/h without going into next line... (reason unknown, at least to me :p)
多谢ian fung 的回复,但是附件中的vi还是存在问题,km/h好像是显示正常了,但是调整一下字符串显示控件的宽度,“-”后面又出现了空白~
我想在一个固定宽度的字符串显示控件中依次显示一系列的字符串信息,老是由于“/”“-”“:”等符号引起显示的凌乱,不知道有没有办法解决~
Hi,
I think that is Normal since the width of the string indicator is unable to accommodate the entire text, and hence the outcome...
You should cater enough room for displaying purpose especially when single line is expected.
因为labview自带的弹出对话框字体大小不能更改,而在实际应用中我需要自己做一个字体大小可改动的弹出对话框,所以显示的宽度不能太宽,对于过长的字符串可以在一行显示不下的时候自动换行,而不是由于一些特殊符号的存在导致一行后面留有很长的空白,上述例子只是示意,好像还没有太过别扭,附件例子看起来就很影响美观了~
不知这个问题能否解决,或者给出一个弹出对话框实现的另一种思路,虚心求教~