View Full Version : TextArea scroll to bottom
sconer
08-23-2006, 04:19 AM
I have googled everywhere and it seems there are threads that actually know what they're talking about but I cannot get the code they use to work for mine. Can anyone please give me the code to make the TextArea's scrollbar go to the bottom? Thanks :)
mayur_vnit
08-23-2006, 05:11 AM
m.vPosition = m.maxVPosition;
m is the instance name of the textArea component
sconer
08-23-2006, 05:14 AM
i've tryed this, doesnt work. maybe my other scripts are interfering with it, i will experiment with it lol.
walnutfish
08-23-2006, 06:01 AM
Instead of using a textArea, I use a textBox and use the UI Scrollbar for the textfield. You can even design your own scrollbar and apply the following code:
scrollDown.OnPress = function(){
this.onEnterFrame = function(){
this._parent.TextBoxName.scroll += 1;
}
}
scrollDown.onRelease = function(){
delete this.onEnterFrame();
}
scrollUp.OnPress = function(){
this.onEnterFrame = function(){
this._parent.TextBoxName.scroll -= 1;
}
}
scrollUp.onRelease = function(){
delete this.onEnterFrame();
}
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.