[Project_owners] TextBox scrolling

Brian King brian at mozdev.org
Fri May 6 15:40:20 EDT 2005


Jean-Denis Girard wrote:
> Hi list,
> 
> I've got a very basic question: what method exist to scroll a xul 
> textbox widget? My textbox is used as a log window, and I'd like to 
> allways show the last lines.

setSelectionRange should do the trick for you.

http://xulplanet.com/references/elemref/ref_textbox.html#prop_setSelectionRange

-- 
Brian King
www.mozdev.org - free project hosting for the Mozilla community


More information about the Project_owners mailing list