Translate "No value" inside a DoubleEditBox

Editors for WPF Forum

Posted 7 years ago by BLANC Stéphane - Staubli Robotics Suite Product Manager, STAUBLI
Version: 12.2.0570
Avatar

Hello,

I use a DoubleEditBox and when I'm not binded "No value" is displayed.
How can I translate it ?

Thank you

Stéphane.

Comments (4)

Answer - Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello, that is a string resource.  You can see it in the String Resource Browser in the Sample Browser and can generate code there to programmatically change it per instructions in the documentation on string resources.


Actipro Software Support

Posted 7 years ago by BLANC Stéphane - Staubli Robotics Suite Product Manager, STAUBLI
Avatar

Hello,

I tried to use this but it has no effect in my project... ?

ActiproSoftware.Products.Editors.SR.SetCustomString(ActiproSoftware.Products.Editors.SRName.UIDoubleEditBoxHint.ToString(), "TEST");

Stéphane

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi, I tried that line and it worked fine for me.  Make sure you set it before any UI is loaded, such as one of the first things in your Application.OnStartup method.


Actipro Software Support

Posted 7 years ago by BLANC Stéphane - Staubli Robotics Suite Product Manager, STAUBLI
Avatar

Thank you for the answer.

I put the line before "InitializeComponent();" and now it works.

Stéphane

The latest build of this product (v2019.1 build 0682) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.