Scroll To End Of TextArea GadgetArchives Forums/BlitzPlus Programming/Scroll To End Of TextArea Gadget
| Hello there,|
Is there a way in code to cause a text area to scroll to the bottom of the text within it.
Currently I am using a text area gadget for a simple chat feature in a project I am working on but upon displaying a new line of text when a message is received the text area automatically goes back to the top of the list.
Asides from perhaps entering the chat messages in reverse order into the text area so that the newest message is always at the top is there a way to scroll the text area to the bottom with code?
| Yes, using the command AddGadgetItem gadget,item$[,select,icon] simply set the select option to 1 which will 'SELECT' the item effectively scrolling. You will need to use a list box though instead of a text area but that shouldn't be a problem. |
| Thanks, I'll see how that goes. - EDIT - that works well, thanks very much. |