LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to highlight a line in a text stream and position the cursor at the end.

I would like to select a line in a text control data stream, highlight the text, and place the cursor at the end of the line so that the text control can be edited at that point.
0 Kudos
Message 1 of 3
(2,709 Views)
Depends on what you mean by "highlight". If you mean highlight in the sense of when you use the mouse to select text, then you can't do that and then place the cursor at the end, since that would effectively "unhighlight" the text. You need to use a different kind of "highlight", like turning the text bold or something. This KB article talks about highlighting particular characters: How Do I Highlight Particular Characters in a String Control?

See attached for simple example. Modify as needed.
0 Kudos
Message 2 of 3
(2,698 Views)
Thanks,  this did the trick!
0 Kudos
Message 3 of 3
(2,680 Views)