Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scroll bar - goto top?

Status
Not open for further replies.

adamr1001

MIS
Jul 25, 2001
166
CA


different pieces of text get dynamically loaded into a text field - that has a scroll bar.

if i scroll down the text - then load new text into the text field - the text will load but it will appear scrolled - so my question is how can set the scroll bar to go to the top when new text is loaded...

(i know how to organize the functions, but not how to control the scroll bar through code)

thanks!
 
my_scroollbar.setScrollPosition(0);

Each time you load in a new text.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top