LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Word wrap in text box

 I am appending incoming serial data to a text box on a front panel.  I would like to turn off word wrap on the text box, display a horizontal and vertical scrollbar, and automatically scroll the text box to the end of the text after I append.  Can someone point me off in the right direction here?
 
Thanks!
-cb
0 Kudos
Message 1 of 9
(4,003 Views)
Use the ActiveX container on the front panel and populate it with the Microsoft Rich Text control. That has the two scroll bars and the rest of your requirement can probably be done with the properties of that control. If you are running on those other OS, I don't know.
0 Kudos
Message 2 of 9
(3,995 Views)

Thanks ODD,

I added the rich text control, but cannot find a property to turn off word wrap.  My control is MS Rich Textbox 6.0 (SP4) if that helps.  Do you know how to format the control for word wrap off?

-cb

0 Kudos
Message 3 of 9
(3,987 Views)
turn off multi line prop
0 Kudos
Message 4 of 9
(3,979 Views)
Hmmm,  That enables the horizontal scroll, but I still need multi-line functionality.  If you could post an example, that would help!  Thanks for your suggestions.
0 Kudos
Message 5 of 9
(3,975 Views)
Dear 10Degree!
 
May be this example will be useful. Look for comments on the block diagram.

Jack
Win XP
LabVIEW 6.1, 7.0, 7.1, LabWindows/ CVI 7.1
Let us speek Russian 🙂
0 Kudos
Message 6 of 9
(3,972 Views)

EVS,

Thanks!  That is a very helpful example!  I can't seem to find a way to turn off word-wrap in the textbox or in a MS rich edit activeX I have been putzing with either.  If you come across a solution for that too let me know!

-cb

0 Kudos
Message 7 of 9
(3,966 Views)
10Degree
 
I have checked "\" Codes display for the textbox. So it should not word wraps. It does not know about word, just symbol sequence Smiley Happy.
But some special symbols looks like "\n", "\t" and so on. It is possible to replace theese symbols with other.

Jack
Win XP
LabVIEW 6.1, 7.0, 7.1, LabWindows/ CVI 7.1
Let us speek Russian 🙂
0 Kudos
Message 8 of 9
(3,965 Views)
try using picture control
0 Kudos
Message 9 of 9
(3,946 Views)