06-07-2007 02:58 PM
06-07-2007 04:26 PM
Brian,
His issue is not that he doesn't have text.scrollpos, but that it doesn't work the way he wants. He has limit to single line, and word wrap disabled. He has horizontal scrollbar visible. On the front panel, he can slide the scrollbar left and right to show different portions of the string control. He wants to programmatically control the scrollbar, but the text.scrollpos property does not do this.
If it is set up for multiple lines and word wrap enabled, the property does work to change the vertical scrollbar.
06-07-2007 07:54 PM
06-07-2007 08:40 PM - edited 06-07-2007 08:40 PM
I don't think it will work for you. I've been running version 8.2 and experimenting with different word wrap, limit single line, and scrollbar visibility setttings. I haven't found a way to do it in LV 8.2.
-Bill
Message Edited by Ravens Fan on 06-07-2007 09:41 PM
06-07-2007 09:30 PM
06-07-2007 09:53 PM
Smerurio's work around is pretty good. What he did was set the control to do word wrapping. You are seeing a single line of a multi-line word wrapped string. So when the text.scroll position property changes, it is essentially just doing a vertical scrolling from line 1 to line 2 to line 3. That's why it seems a little coarse.
What is really needed is a text.hscroll position property for the horizontal scroll bar position. But it just doesn't exist.
06-08-2007 09:14 AM