Jordi Trujillo wrote: > Hi everybody here. > > I'm new to programming but I was so delighted with > vtcl that I started some small application to connect > with some hardware prototypes that use tcl as > underware interface connection with the firmware of > those prototypes. > > The point is that this small app has a main window > with two text boxes, first is an input console and > second is an output console. Both are having their own > scrollbar and I would like them to be always on its > lowest (bottom) position because text and answer is > always added to the existent inbox-text and people has > to move the scrollbar down manually. > > The "y scroll cmd" on text boxes is using: > scrollMove .top17.scr24 > > and the scrollMove procedure is defined as: > # scrollMove -- > # Sends to the plotter a file without evaluating. > # Suited for sending draws to the plotter. > # > # Arguments: > # scrollbar - Name of the scroll windget. > # first - x axis argument. > # second - y axis argument. > $scrollbar set $first $second > > The scrollbar command is: > .top17.tex23 yview > > Does all that make sense? I hope so. Well, that works > and allows to move up and down the content on the text > widget sincronized with the content of the text box. > > So, to sum it up, the question is: how can I do that > the scroll bar pointer was always at bottom position, > so, displaying last lines of the text widget (instead > of always at top displaying always first lines)? > > Thanks in advance. > > Jordi T. Rius > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com > --------------------------------------------------------------------------- > To unsubscribe from the Visual Tcl mailing list, please send a message > to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the > message body (where [EMAIL PROTECTED] is your e-mail address). I think you could add command like .top17.tex23 see end to your procedure and everytime it is called, the text will scroll to the end. I don't think it would even be linked to the scrollbars, it is just a property of the text widget. Alex Caldwell [EMAIL PROTECTED]
begin:vcard n:Caldwell;Alexander x-mozilla-html:FALSE org:Tulare Family Practice adr:;;;;;; version:2.1 email;internet:[EMAIL PROTECTED] title:Physician x-mozilla-cpt:;0 fn:Alexander Caldwell end:vcard
