LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Optional Scrollbar

Hello,

I desire to have a scrollbar appear in a string-display window when the text present is greater than the area to display it. I see that there is an attribute node to turn on/off the scrollbar.

However, I can find no way to merely count the lines of text displayed (from which I could do a simple >= case statement).

Is there an option that automatically makes the string-indicator display a scrollbar only if more text than space is present? Or is there a way to count lines (not just carriage returns) of the text?

(w/ Labview 5.0)

thanks
Philip_B
defense contractor
0 Kudos
Message 1 of 7
(3,095 Views)
Here is the answer to your question hopefully. Try using the scroll position property. This is under the text then scroll position. Check out this example. Hope it helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 7
(3,059 Views)
Oh by the way there is a bug in my answer. Once you go back to scroll position 0 then the scroll bar is removed... 🙂 So you might want to disable the property after you add the scroll bar. HOpe this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 3 of 7
(3,054 Views)
One more thing. This other post that I just solved might also be a solution. Look at this one: http://forums.ni.com/ni/board/message?board.id=170&message.id=100583#M100583
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 4 of 7
(3,051 Views)
here is a jpg of the block diagram. I forgot you are working with 5.0. You should upgrade you are missing out!!! 🙂
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 5 of 7
(3,048 Views)
BJD,
Thanks so much! Unfortunately, I can't seem to find Text.Scrollposition in my Labview 5.0 version. The closest is Scrollposition, which takes an input, and does not give an output.

[Unfortunately, the test station our product works on does not support any newer versions of Labivew. I've asked several times 😉 ]

best,
pjb
0 Kudos
Message 6 of 7
(3,036 Views)
Here is my current program.

The scrollbar does not automatically appear, but rather when the cursor moves beyond the page.

Is there a way to get it to appear automatically when appropriate?
thanks
pjb
0 Kudos
Message 7 of 7
(3,018 Views)