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

Home » Public Forums » archive » Re: scroll problem with widget_text
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: scroll problem with widget_text [message #56669 is a reply to message #56668] Wed, 07 November 2007 08:22 Go to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On Nov 7, 11:14 am, Jarret (whetsto...@gmail.com) wrote:
> I am using a text widget in IDL.
> When I write more lines of text to it than the y dimension can
> accomidate, I get a nice scroll bar. However, the widget will
> always display the top of the text. Is there any way to make the
> widget automatically scroll to the end when the value is set?
>

Hi,

Take a look at WIDGET_CONTROL and the SET_TEXT_TOP_LINE keyword.
Here's the online help for it...

SET_TEXT_TOP_LINE
This keyword applies to widgets created with the WIDGET_TEXT
function.
Set this keyword to the zero-based line number of the line to be
positioned on the topmost visible line in the text widget's viewport.
No horizontal scrolling is performed. Note that this is a line number,
not a character offset.

Cheers,
Ben
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: scroll problem with widget_text
Next Topic: Re: !path problem

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

Current Time: Thu Dec 04 19:33:39 PST 2025

Total time taken to generate the page: 1.43994 seconds