Text Widget scrolling in PV-Wave [message #11324] |
Tue, 24 March 1998 00:00  |
daniel
Messages: 3 Registered: March 1998
|
Junior Member |
|
|
Hello,
I am working with PV-Wave 6.1 on a VAX-VMS system. The problem that I
am having is getting a text or picture box (with scrollbars) to scroll
programmatically.
I am writing multiple lines of text to the box, more than can be visible.
I can scroll the text manually (using the slider). However, whenever I
append to the string, the text box repositions to the beginning of the
string. What I am interested in doing is positioning to the end of the
string.
Since the documentation is not ideal in its discussion of the scroll
keyword, reading the manuals has been of little help.
Has anyone out there figured out how to accomplish this?
Thanks
Mike Daniel
|
|
|
|
Re: Text widget Scrolling [message #37226 is a reply to message #11324] |
Mon, 08 December 2003 06:56  |
btt
Messages: 345 Registered: December 2000
|
Senior Member |
|
|
Andrew Fielding wrote:
> Does anyone know if is possible when using text widgets with the
> scroll keyword to set to keep the scroll bar at the bottom, i.e. so
> that the last line of output text is always on display?
>
> Andrew
Hi,
You will have to get clever with ...
WIDGET_CONTROL, widgetID, set_text_top_line = lineNumberToPutAtTop
This command puts the line you specify at the top of the visible text
widget. It's not too hard, you just have to keep track of the number of
lines in the entire text body and the number of lines visible in the widget.
Ben
|
|
|