Dear fellow nuns and monks,

I wrote a program using PERL/Tk which processes data. The processing takes some while, so I create status messages and display them in a scrolled textbox. This works very fine, but after some time the amount of status message lines is bigger than the number of lines contained in the text windows - exactly the situation for which a scrolled box is required.

Now, the status messages are still added in the right way, but they are not visible on the screen, because the text box only displays the top portion of the text, whereas to view those lines at the end of the text (and therefore the most recent status messages) one has to scroll manually down the text.

What I would like to have now is that the text window automatically scrolls down, so that always the bottom part of the text is visible, and so the most recent status messages.

How can I program that behaviour?

Many thanks in advance for your help!

With my best greetings and wishes,
Yours

chanklaus

Learning is like swimming against the current - as soon as you stop you'll drift back
(Chinese proverb)

In reply to PERL/Tk Scrolled Textbox: How do I tell it to automatically scroll down? by chanklaus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.