03-16-2016 09:06 AM
I have a string indicator with a scroll bar on the side. Each line that is written displays underneath the previous line. However, when it gets to the bottom (8th line), it does not auto scroll up. Therefore, I have to use the scroll bar to see what was last written. Is there a property that allows me to control this so that the last item added always displays?
03-16-2016 09:18 AM
Hello,
there is a property 'Text.Scroll Position'. Wire -1 to it to show the last line of text.
UliB
03-16-2016 09:19 AM
03-16-2016 09:23 AM
I read about the -1. However, the type is U32 and it won't let me use the -1
03-16-2016 09:27 AM
03-16-2016 09:27 AM
Well,
-1 in I32 will convert to 4294967295 in U32. If you always want the last line wire a I32 constant with -1 to the property.
UliB
03-16-2016 12:56 PM
I tried some of the suggestions, and they don't seem to work. One question, though, can I set the Text.ScrollPos attribute once (at the beginning) and be done? Or do I have to set it each time I write to it?
03-16-2016 01:25 PM
The property node updates the display when you call it, so you should call 'Text.Scroll Position' every time after you updated your text.
You could use property 'value' and property 'Text.Scroll Position' in one property node.
UliB
03-16-2016 02:16 PM - edited 03-16-2016 02:17 PM
It could be like this:
UliB
03-16-2016 08:45 PM
That seems to work now! Thanks for all the help