#1
  1. PHP hax0r
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Location
    Portsmouth, VA
    Posts
    25
    Rep Power
    0

    Question start text at bottom


    How would I go about starting the imported text at the bottom rather than having to scroll to the bottom?

    Normal:

    ----------------- window top
    text 1
    text 2
    text 3
    ----------------- window bottom
    text 4
    text 5


    Instead I would like:

    text 1
    text 2
    ----------------- window top
    text 3
    text 4
    text 5
    ----------------- window bottom
  2. #2
  3. No Profile Picture
    Certified Genius
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    over there
    Posts
    77
    Rep Power
    14

    something like this?


    myVar = whatever variable is attached to your text box

    myVar.scroll = myVar.maxscroll - 2

    where 2 is (in your example) one less than the number of lines that can be seen. also i dunno if maxscroll is the last line or the line at the top of the text box when the last line is at the bottom of the text box...just play around. hope this helps, if not check the help files for scroll, and maxscroll...rob
    Last edited by rob5408; February 25th, 2002 at 02:24 PM.
  4. #3
  5. PHP hax0r
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Location
    Portsmouth, VA
    Posts
    25
    Rep Power
    0
    thanks, i figured it out using max scroll the other day.

IMN logo majestic logo threadwatch logo seochat tools logo