From: Alex T. <al...@tw...> - 2004-09-28 12:42:02
|
At 12:43 28/09/2004 +0100, ni...@ja... wrote: >Hi folks, > >I have a problem with a TextArea on my app. >The TextArea initially has no text, but when a user presses the 'search' >button >it punts the results into the TextArea using .appendText(). > >This works brilliantly. However, when the results contains more data than can >fit into the TextArea without it scrolling on the vertical, the TextArea does >not show the text, I need to scroll up to see it. > >Unfortunately I haven't seen a way to fix this little niggle, can it be done ? Right - adding to the text doesn't automatically scroll for you. There are various ways - probably many better than this one - but the easiest is self.components.TextArea1.ScrollLines(999999) (or some other suitably large number :-) ScrollLines will move you that many lines, if possible (i.e. it's a relative move, not an absolute number) -- Alex. |