comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Text Widget scrolling in PV-Wave
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Text Widget scrolling in PV-Wave [message #11324] Tue, 24 March 1998 00:00 Go to next message
daniel is currently offline  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 [message #25901 is a reply to message #11324] Wed, 25 July 2001 06:30 Go to previous messageGo to next message
Alex Schuster is currently offline  Alex Schuster
Messages: 124
Registered: February 1997
Senior Member
Dominik Paul wrote:

> So, does somebody know a method, to always scroll to the end, after printing
> something into the widget?

I think you can use the APPEND keyword to WIDGET_CONTROL. Or you can
control the topmost visible line with WIDGET_CONTROL, SET_TEXT_TOP_LINE.

Alex
--
Alex Schuster Wonko@planet-interkom.de
alex@pet.mpin-koeln.mpg.de
Re: Text widget Scrolling [message #37226 is a reply to message #11324] Mon, 08 December 2003 06:56 Go to previous message
btt is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: test
Next Topic: Re: importing variables into iTools programmatically

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:27:38 PDT 2025

Total time taken to generate the page: 0.00631 seconds