04-25-2024 03:59 AM
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.
04-25-2024 04:30 AM
Use the Font dialog (ctrl+0) to set the text alignment to Right.
04-25-2024 04:35 AM
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
04-25-2024 04:40 AM
Hi Max,
@maxnoder1995 wrote:
I've included an example that does this well.
Even writing this twice doesn't make the attachment appear…
04-25-2024 04:42 AM
Oops...
04-25-2024 05:02 AM
04-25-2024 07:17 AM
@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:
04-25-2024 07:23 AM
Is this a language thing? Maybe this is better handled through localization?
04-25-2024 11:53 AM
@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.
04-26-2024 08:29 AM
I am interested in writing a sentence that combines English and Hebrew without it being scattered