LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ω symbol in a text Label

Solved!
Go to solution

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 Kudos
Message 1 of 15
(9,649 Views)

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 Kudos
Message 2 of 15
(9,641 Views)

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... Smiley Surprised

 

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

0 Kudos
Message 3 of 15
(9,642 Views)

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

 

0 Kudos
Message 4 of 15
(9,618 Views)
Solution
Accepted by topic author 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

Message 5 of 15
(9,606 Views)
Solution
Accepted by topic author 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... Smiley Surprised

 

Thanks for this great answer

0 Kudos
Message 6 of 15
(9,596 Views)

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?
Message 7 of 15
(9,559 Views)

wonderful!
Thank you for all, clear and efficient!

0 Kudos
Message 8 of 15
(9,549 Views)

you made a mistake... Smiley Wink  you should mark the answer of Luis as solution to your problem (not my comment)

0 Kudos
Message 9 of 15
(9,545 Views)

Sorry, yes thank you again !

 

0 Kudos
Message 10 of 15
(9,541 Views)