LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scrolling Multi-line text indicator

Hi there,
 
I was wondering if anyone had any hints to help me solve the following problem.
 
I'm wanting to create a Text Output window, that displays messages to the user.  As the text box fills I'd like it to scroll so that the latest message is displayed on the bottom line and the oldest message scolls of the top.  Sounds simple enough but just can't get it.
 
I've attached an example.
 
Thanks in Advance
 
Derek
0 Kudos
Message 1 of 12
(9,601 Views)
Hi Derek,

there's a property node describing the scroll position of the string indicator. Everytime you add text to the string you should set this property to the end of text. I'm not sure if it wants to have "number of lines" or "number of chars" as I don't have LabView at hand...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 12
(9,586 Views)
Hello,

Gerdw it's correct. The property "scroll position" can do what you want. The help says "position of the scroll box in the scroll bar".

You can see in the attach pic where you can find it.
Software developer
www.mcm-electronics.com





PORTUGAL
Message 3 of 12
(9,568 Views)

Thanks to both off you for replying.

Both answers get an excellent rating... but for some reason, I can't see the ratings bit... odd they were there last week  Smiley Sad

 
0 Kudos
Message 4 of 12
(9,565 Views)

Hi,

Also when i use a scroll / log output window instead of reading how big it is then setting the scroll position to the end of the data, i just give the scroll property node the largest value it can recieve 2^32 if i remember.  That way it is always at the bottom and you dont have to read current values etc.

Craig

LabVIEW 2012
0 Kudos
Message 5 of 12
(9,558 Views)
Hi Derek,

You have to be signed in to be able to see the rating. Have you done that?

PS: every time youpost a question, don't forget to say the labview version. By the point we can see if it's possible to send you an example.
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 6 of 12
(9,556 Views)
Hi Derek,

the rating system changed a little bit in the last days. You have to have a minimum number of posts nowSmiley Sad
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 12
(9,549 Views)
Yeah... I'm logged in my name appears top left... but no ratings bit.  Also I only have one reply button at the top of the thread, from memory there should be one next each post!
 
 
 
Thanks for the extra tip Craig, I was searching the Text for carriage returns... but that's much easier Smiley Happy

Message Edited by Dereklogitech on 09-19-2007 04:44 AM

0 Kudos
Message 8 of 12
(9,549 Views)

Hi,

As an extra tip i usually add in an auto scroll boolean (I use the checkbox) for when you want to read back the text.  However im sure you would have thought ahead 😉

Craig

LabVIEW 2012
0 Kudos
Message 9 of 12
(9,542 Views)

maybe i am stupid......but where the hell is that damm menue shown up in that picture???

 

LV8.5

0 Kudos
Message 10 of 12
(9,175 Views)