05-31-2007 04:13 PM
05-31-2007 05:05 PM
06-01-2007 04:09 PM
Hi,
Indeed the Text.ScollPos is the property want to use. I would also suggest using the EnableWrap property to limit how the text is displayed. If you are wondering what the LimitSglLine property is used for, there is a good forum here that others discuss it.
http://forums.ni.com/ni/board/message?board.id=170&message.id=17569&requireLogin=False
I hope that helps.
06-02-2007 02:34 PM
06-02-2007 10:01 PM
Based on my understanding of what you want, a single line of text with a horizontal scrollbar and no word wrapping, Text.Scroll Position will not work because the property deals with lines.
In the help file for this property.
Property of Text.
Position of the scroll box in the scroll bar. To set the position, wire a numeric value to this property that represents the line number to which you want to scroll. The position is 0-indexed. For example, if a string control contains 6 lines of text, you can wire a value of 2 to this property to move the scroll box to the position of the third line.
I have yet to find a property that truly deals with horizontal position.
06-04-2007 05:21 AM
@bjlv wrote:
I have a string control that can have a lot of data in it, but it is constrained to be one single line. I would like to eliminate the usual horizontal scrollbar and place buttons at the two ends of the string to control moving around in the string. In my playing around with this, I have not found a way to move the string left or right to get the active part into view programatically. The vertical scrollbar on a string with multiple lines I can simulate, but not the horizontal one going left or right on a single line string. What have I missed?
Bart
Bart,
What you ve missed is that a Str control doesnt ve a horizontal scrollbar to bring into view the desitred portion of the string.
Unlike the other 2 replies, using the TextScrollposition property also wont serve the purpose as Ravens Fan has indicated.
Maybe you can use the String Subset function coupled with a horizontal slide for the user to scroll it.
Try out the attached VI & modify it as per your requirement.
06-04-2007 10:44 AM
06-05-2007 09:04 PM
06-06-2007 04:09 PM
Bart,
I don't understand what you mean by not being able to do in 8.0.1 what is easily done in 8.2. This VI, once saved for version 8.0, has the same functionality.
06-06-2007 06:55 PM