Jump to content

Unicode Display (TabControl and Tree Menu)


Recommended Posts

Posted

Hi,

My project is to translate an application into multiple languages,
However, I am facing an issue with the display of the TabControl and the TreeMenu, When I translate them into French, I have spacing problems, as you can see in the picture.

I am using:

LabVIEW 2024
Input file format: .json
Encoding/Conversion: Unicode

Thanks for help, 
image.png.7fe06db05ce5c6559000712b8226b956.png
image.png.dbea4f3118ecfc5ce588ff74d5eeab5f.png
 

TabControl V 2016.vi

Posted (edited)
6 hours ago, Adnene007 said:

Hi,

My project is to translate an application into multiple languages,
However, I am facing an issue with the display of the TabControl and the TreeMenu, When I translate them into French, I have spacing problems, as you can see in the picture.

I am using:

LabVIEW 2024
Input file format: .json
Encoding/Conversion: Unicode

Thanks for help, 
image.png.7fe06db05ce5c6559000712b8226b956.png
image.png.dbea4f3118ecfc5ce588ff74d5eeab5f.png
 

TabControl V 2016.vi 11.88 kB · 2 downloads

A bit confusing. You talk about French but show an English front panel. But what you see is a typical Unicode String displayed as ASCII. On Windows, Unicode is so called UTF16LE. For all the first 127 ASCII codes this means that each character results in two bytes, with the first byte being the ASCII code and the second byte being 0x00. LabVIEW does display a space for non-printable characters and 0x00 is non-printable unlike in C where it is the End Of String indicator.

So you will have to make sure the control is Unicode enabled. Now Unicode support in LabVIEW is still experimental (present but not a released feature) and there are many areas where it doesn't work as desired. You do need to add a special keyword to the INI file to enable it and in many cases also enable a special (normally non-visible) property on the control. It may be that the Tab labels need to have this property enabled separately or that Unicode support for this part of the UI is one of the areas that is not fully implemented.

Use of Unicode UI in LabVIEW is still an unreleased feature. It may or may not work, depending on your specific circumstances and while NI is currently actively working on making this a full feature, they have not made any promises when it will be ready for the masses.

Edited by Rolf Kalbermatter

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.