취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

Ω symbol in a text Label

해결 완료!
솔루션으로 이동

Dear all,
I use Labwindows CVI, and would like to write the text « Ref= 50 Ω » on a label text but this does not work correctly. It seems to me that I cannot mix the symbol « Ω » with letters in the same text label. So, I write in different two text labels separatly the text « Ref= 50» and  the text « Ω ». The two text labels are  near each other, just to make them like they are written in a same text label. When the application is not resized, this seems to work fine.
However,  when I resize the panel application, the symbol « Ω » moves write the other text label. In the final, the two text labels become far away each from other, and they do not look like they are together.
I would like to know how can write « Ref= 50 Ω » in one text label, or how can I avoid the moving of text labels when the Panel is resized.
Thank you in advance for your answer.
Best regards,
--
Hapiest    

0 포인트
1/15 메시지
11,240 조회수

That's not a easy task: the best I can suggest you is to find a font that includes both alphanumeric digits and symbols. Unfortunately it seems you have very limited choices: on my system (Win7 with 130+ elements in windows/fonts folder) only NISYSTEM font permits to obtain that label but with a very ugly aspect in my opinion.

 

See here:

Screenshot 2015-07-08 16.45.50.png

 



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 포인트
2/15 메시지
11,232 조회수

I think that at present this is not easily possible... it would work for a Unicode character set, but right now Unicode is not supported (see here if you want to help changing it)

 

... I see (Roberto was faster by two seconds) that it IS possible... 놀람 이모티콘

 

Anyway, my suggested way out would be to write "Ref = 50 Ohm", no symbol

0 포인트
3/15 메시지
11,233 조회수

could you please tell me which symbol you gave to print Ω symbol with (NISYSTEM, wstern)?

 

0 포인트
4/15 메시지
11,209 조회수
솔루션
주제 작성자 hapiest이(가) 승인함

Actually, even absent Unicode support, in this particular case you don't have to be stuck with the NISYSTEM font.

 

You can use any common font, as long as you specify the Greek character set. This works because practically all non-Western character sets also support the unaccented western European characters (i.e. the ASCII codes 0 - 127). So, for example, while it's true that without Unicode you can't combine Greek characters with Turkish characters in the same text label, you can however combine Greek with English and you can combine Turkish with English.

 

greek.png

 

Entering the text in the control is a different matter. If you're pasting the string, it's straightforward. But if you're typing, you need to toggle your keyboard language input, so that you can enter the codes that correspond to the character you want (for example, the omega character).

 

To change the keyboard input, you first need to make sure the language bar is visible in your taskbar:

 

bar.png

 

 

Then you need to populate it with the languages you might ever want to enter:

 

populate.png

 

Once you do this, you should have the languages you need in your taskbar:

 

languages.png

 

You need to then pick the language corresponding to the characters you wish to enter and then type the keys that correspond to those characters. For the omega character, you'll need to switch to Greek and press the 'v' key (in a typical English keyboard):

 

properties.png

5/15 메시지
11,197 조회수
솔루션
주제 작성자 hapiest이(가) 승인함

awesome...

 

Now I've learnt even how to show the assignment of keys in Windows, after so many years I've seen this keyboard layout preview the first time... 놀람 이모티콘

 

Thanks for this great answer

0 포인트
6/15 메시지
11,187 조회수

Luis, that's definitely the best solution to this problem I've ever heard!

Till now I was used to type in the codes corresponding to the symbols I most frequently used (e.g. Alt+246 for ÷, or Alt+241 for ±), and I couldn't obtain the Ω!

 

I see that I can do the same programmatically, provided I ignore that in the source editor the string is displayed with a different symbol, trusting that the final result will be correct:

 

Screenshot 2015-07-09 09.40.18.png



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
7/15 메시지
11,150 조회수

wonderful!
Thank you for all, clear and efficient!

0 포인트
8/15 메시지
11,140 조회수

you made a mistake... 윙크 이모티콘  you should mark the answer of Luis as solution to your problem (not my comment)

0 포인트
9/15 메시지
11,136 조회수

Sorry, yes thank you again !

 

0 포인트
10/15 메시지
11,132 조회수