Re: Scrolling within a text widget [message #81301] |
Fri, 07 September 2012 12:24  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Heinz Stege writes:
> here is a very basic question on srolling the text within a text
> widget. My program is writing messages (e.g. infos, warnings and error
> messages) into a little text widget. I would like the widget
> automatically to scroll down the text, so that the user always can
> read the latest message.
Oh, my gosh! Does this bring back a lot of bad memories!
It's like an old girlfriend showing up years later after
you thought that nightmare was over. :-)
I don't think there is a real solution. At least I
don't remember one, and it's pretty clear no one
has bothered to work on widgets for at least the last
10 years or so.
You might try TextLineFormat in the Coyote Library. I think
I wrote that to break lines up into shorter lines so that
I could keep track of them as I added them to a text widget.
That way, I didn't have to worry about wrapping.
http://www.idlcoyote.com/programs/textlinformat.pro
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|