LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Right to Left

Hello everyone,

I'm working with a String Control in LabVIEW, and I've noticed that when I type text into the control, it's spelled from left to right (left-to-right direction). However, I need the text to be written from right to left (right-to-left direction).

Is there a way to configure the String Control so that text input occurs from right to left instead of left to right, perhaps utilizing a value change event?

Any suggestions would be greatly appreciated. Thank you for your help!

I've attached code that does this perfectly in a RichTextBox but I'd like to do it in a simple String Control.

0 Kudos
Message 1 of 15
(309 Views)

Use the Font dialog (ctrl+0) to set the text alignment to Right.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 15
(292 Views)

It's moving the text to the right side but Does not perform the 'Right to Left' functionality
I've included an example that does this well.
Justify = Right does nothing except change the position of the text

0 Kudos
Message 3 of 15
(288 Views)

Hi Max,

 


@maxnoder1995 wrote:

I've included an example that does this well.


Even writing this twice doesn't make the attachment appear…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 15
(283 Views)

Oops...

0 Kudos
Message 5 of 15
(280 Views)

Hi Max,

 

when using recent LabVIEW versions you should consider File->Save for previous.

(Most recommend to save for LV2021 or older, I prefer LV2019.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 15
(269 Views)

@maxnoder1995 wrote:

It's moving the text to the right side but Does not perform the 'Right to Left' functionality
I've included an example that does this well.
Justify = Right does nothing except change the position of the text


Ah, then i understand. Try this:

Yamaeda_0-1714047419503.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 15
(230 Views)

Is this a language thing?  Maybe this is better handled through localization?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 15
(227 Views)

@maxnoder1995 wrote:


I've attached code that does this perfectly in a RichTextBox but I'd like to do it in a simple String Control.


If it is a language issue (I can't look at your code right now), then that (or something simpler like a TextBox) is indeed your solution. Microsoft have put some effort into getting bidirectional support in their text controls and NI has not really done it, so you can type R2L text, but it doesn't play nice with punctuation, numbers, English, etc.


___________________
Try to take over the world!
0 Kudos
Message 9 of 15
(186 Views)

I am interested in writing a sentence that combines English and Hebrew without it being scattered

0 Kudos
Message 10 of 15
(150 Views)