LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

setting scrollbar position for string indicator

Is there any way to set the position of the scrollbar for a string indicator without having to track the number of lines? I am continually updating my string indicator and want the scrollbar to be positioned at the last entry. It seems like there would be an easier method than updating the number of lines.
0 Kudos
Message 1 of 6
(3,010 Views)
I did this too and I count the number of lines...
I wrote the attached subvi for this purpose.
The first output goes to the string indicator, the
second to a property node "Text.ScrollPos".

Best regards
Gerd
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,010 Views)
Hi ss2593,

I had the same problem, which I solved by continually (every few 100 ms)
setting the property Text.ScrollPos = "+infinity". Works great.

-Chris

"ss2593" wrote in message
news:50650000000800000062A40000-1042324653000@exchange.ni.com...
> Is there any way to set the position of the scrollbar for a string
> indicator without having to track the number of lines? I am
> continually updating my string indicator and want the scrollbar to be
> positioned at the last entry. It seems like there would be an easier
> method than updating the number of lines.
0 Kudos
Message 3 of 6
(3,010 Views)
This will help you to count no.of lines of your input string, before writing it to the Text.ScrollPos of the string indicator.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 6
(3,010 Views)
I had hoped that I was overlooking a simple property setting or something, but that doesn't appear to be the case. From everyone's input, it does look like I need to track the number of lines. At least you've answered my question. Thanks a bunch.
0 Kudos
Message 5 of 6
(3,010 Views)
great that my vi did help you 🙂
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 6 of 6
(3,010 Views)